We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8191b7e commit 49cca0aCopy full SHA for 49cca0a
.github/workflows/publish.yml
@@ -98,8 +98,13 @@ jobs:
98
run: |
99
git config user.name "github-actions"
100
git config user.email "github-actions@github.com"
101
- git tag -a "v$TAG_VERSION" -m "v$TAG_VERSION"
102
- git push origin "v$TAG_VERSION"
+ git fetch --tags
+ if git rev-parse "v$TAG_VERSION" >/dev/null 2>&1; then
103
+ echo "Tag v$TAG_VERSION already exists, skipping"
104
+ else
105
+ git tag -a "v$TAG_VERSION" -m "v$TAG_VERSION"
106
+ git push origin "v$TAG_VERSION"
107
+ fi
108
env:
109
TAG_VERSION: ${{ steps.version.outputs.version }}
110
0 commit comments