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 65f3222 commit 80a5385Copy full SHA for 80a5385
1 file changed
.github/workflows/release.yml
@@ -51,6 +51,15 @@ jobs:
51
run: |
52
git config user.name "github-actions[bot]"
53
git config user.email "github-actions[bot]@users.noreply.github.com"
54
+
55
+ TAG_NAME="v${{ github.event.inputs.version }}"
56
57
+ if git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
58
+ echo "Tag $TAG_NAME already exists; skipping tag creation."
59
+ else
60
+ git tag -a "$TAG_NAME" -m "Release $TAG_NAME"
61
+ git push origin "$TAG_NAME"
62
+ fi
63
git tag -a "v${{ github.event.inputs.version }}" -m "Release v${{ github.event.inputs.version }}"
64
git push origin "v${{ github.event.inputs.version }}"
65
0 commit comments