Update tag/action.yaml
This commit is contained in:
parent
db395e17b5
commit
0cc916f70b
@ -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
16
tag/action.yaml
Normal 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}}
|
Loading…
Reference in New Issue
Block a user