Update tag/action.yaml

This commit is contained in:
Zakary Timson 2023-11-24 02:49:27 +00:00
parent db395e17b5
commit 0cc916f70b
2 changed files with 16 additions and 11 deletions

View File

@ -1,11 +0,0 @@
name: Git Tag
desciption: Tag commit with version number
runs:
using: composite
container: alpine/git
steps:
- run: |
TAG=$(git describe --abbrev=0 --tags)
git tag -f "$TAG" "$GITHUB_SHA"
git push -f origin "$TAG"

16
tag/action.yaml Normal file
View File

@ -0,0 +1,16 @@
name: Tag
desciption: Create Git tag
inputs:
tag:
type: string
required: true
description: Tag to publish
runs:
using: composite
steps:
- uses: docker://alpine/git
with:
entrypoint: git
args: tag -f ${{inputs.tag}} ${{github.sha}} && git push -f origin ${{inputs.tag}}