restructure
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# Create and Push Git Tag
|
||||
|
||||
<!-- action-docs-description source="action.yml" -->
|
||||
## Description
|
||||
|
||||
Creates and pushes a git tag in the current repository
|
||||
<!-- action-docs-description source="action.yml" -->
|
||||
|
||||
<!-- action-docs-inputs source="action.yml" -->
|
||||
## Inputs
|
||||
|
||||
| name | description | required | default |
|
||||
| --- | --- | --- | --- |
|
||||
| `tag` | <p>The tag name to create</p> | `true` | `""` |
|
||||
| `token` | <p>Gitea token with repository write access</p> | `true` | `""` |
|
||||
<!-- action-docs-inputs source="action.yml" -->
|
||||
|
||||
<!-- action-docs-runs source="action.yml" -->
|
||||
## Runs
|
||||
|
||||
This action is a `composite` action.
|
||||
<!-- action-docs-runs source="action.yml" -->
|
||||
@@ -0,0 +1,23 @@
|
||||
name: Create and Push Git Tag
|
||||
description: Creates and pushes a git tag in the current repository
|
||||
inputs:
|
||||
tag:
|
||||
description: "The tag name to create"
|
||||
required: true
|
||||
token:
|
||||
description: "Gitea token with repository write access"
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Create and push tag
|
||||
shell: sh
|
||||
env:
|
||||
TAG: ${{ inputs.tag }}
|
||||
TOKEN: ${{ inputs.token }}
|
||||
run: |
|
||||
git config user.email "gitea-actions@gitea.pixelparasol.com"
|
||||
git config user.name "Gitea Actions"
|
||||
git tag "${TAG}"
|
||||
git push "https://gitea-actions:${TOKEN}@gitea.pixelparasol.com/${{ gitea.repository }}.git" "${TAG}"
|
||||
Reference in New Issue
Block a user