Update git/tag/action.yaml

This commit is contained in:
Zakary Timson 2023-08-07 00:55:36 +00:00
parent 35af973653
commit 4057a7e2ce

View File

@ -6,7 +6,6 @@ runs:
container: alpine/git
steps:
- run: |
$TAG=$(cat package.json | grep version | grep -Eo ':.+' | grep -Eo '[[:alnum:]\.\/\-]+')
[ -z "$TAG" ] && TAG=$(git describe)
$TAG=$($(cat package.json || git describe) | grep version | grep -Eo ':.+' | grep -Eo '[[:alnum:]\.\/\-]+')
git tag -f "$TAG" "$GITHUB_SHA"
git push -f origin "$TAG"