Skip to content

Commit 80a5385

Browse files
Apply suggestion from @sourcery-ai[bot]
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 65f3222 commit 80a5385

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ jobs:
5151
run: |
5252
git config user.name "github-actions[bot]"
5353
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
5463
git tag -a "v${{ github.event.inputs.version }}" -m "Release v${{ github.event.inputs.version }}"
5564
git push origin "v${{ github.event.inputs.version }}"
5665

0 commit comments

Comments
 (0)