Update git/tag/action.yaml
This commit is contained in:
parent
35af973653
commit
4057a7e2ce
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user