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 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"