We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63cf32e commit b37ce55Copy full SHA for b37ce55
1 file changed
.github/workflows/release.yml
@@ -95,6 +95,13 @@ jobs:
95
env:
96
JRELEASER_TAG_NAME: "v${{ env.CURRENT_VERSION }}"
97
run: |
98
+ set -euo pipefail
99
+
100
+ if git ls-remote --tags origin "${JRELEASER_TAG_NAME}" | grep -q .; then
101
+ echo "Tag ${JRELEASER_TAG_NAME} already exists on origin; skipping tag creation."
102
+ exit 0
103
+ fi
104
105
git tag ${{ env.JRELEASER_TAG_NAME }}
106
git push origin ${{ env.JRELEASER_TAG_NAME }}
107
0 commit comments