feat: add release-git-tag #3
@@ -1,3 +1,7 @@
|
|||||||
# actions
|
# actions
|
||||||
|
|
||||||
Collection of Gitea friendly actions & workflows
|
Collection of Gitea friendly actions.
|
||||||
|
|
||||||
|
## Actions
|
||||||
|
|
||||||
|
- [release-git-tag](./release-git-tag//README.md)
|
||||||
|
|||||||
9
release-git-tag/README.md
Normal file
9
release-git-tag/README.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# release-git-tag
|
||||||
|
|
||||||
|
Creates and pushes a Git tag to the remote repository.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- uses: ./release-git-tag
|
||||||
|
with:
|
||||||
|
tag: v1.0.0
|
||||||
|
```
|
||||||
15
release-git-tag/action.yaml
Normal file
15
release-git-tag/action.yaml
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
name: Release Git tag
|
||||||
|
description: Releases a Git to origin
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
tag:
|
||||||
|
description: The tag to release
|
||||||
|
required: true
|
||||||
|
|
||||||
|
runs:
|
||||||
|
using: "composite"
|
||||||
|
steps:
|
||||||
|
- shell: bash
|
||||||
|
run: |
|
||||||
|
git tag ${{ inputs.tag }}
|
||||||
|
git push origin ${{ inputs.tag }}
|
||||||
Reference in New Issue
Block a user