Update git/tag/action.yaml
This commit is contained in:
parent
35af973653
commit
4057a7e2ce
@ -6,7 +6,6 @@ runs:
|
|||||||
container: alpine/git
|
container: alpine/git
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: |
|
||||||
$TAG=$(cat package.json | grep version | grep -Eo ':.+' | grep -Eo '[[:alnum:]\.\/\-]+')
|
$TAG=$($(cat package.json || git describe) | grep version | grep -Eo ':.+' | grep -Eo '[[:alnum:]\.\/\-]+')
|
||||||
[ -z "$TAG" ] && TAG=$(git describe)
|
|
||||||
git tag -f "$TAG" "$GITHUB_SHA"
|
git tag -f "$TAG" "$GITHUB_SHA"
|
||||||
git push -f origin "$TAG"
|
git push -f origin "$TAG"
|
||||||
|
Loading…
Reference in New Issue
Block a user