fix: add tag existence check in release workflow
Test / unit-tests (push) Successful in 2m22s

- Check if tag already exists before creating it
- Skip tag creation if tag already exists
This commit is contained in:
2026-03-31 23:18:48 -07:00
parent fe18a8b9fe
commit 89d0d08162
+8 -2
View File
@@ -91,8 +91,14 @@ jobs:
run: | run: |
TAG_NAME="v${{ steps.version.outputs.new_version }}" TAG_NAME="v${{ steps.version.outputs.new_version }}"
echo "Creating tag $TAG_NAME" echo "Creating tag $TAG_NAME"
git tag -a "$TAG_NAME" -m "Release $TAG_NAME"
git push origin "$TAG_NAME" # Check if tag already exists
if git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
echo "Tag $TAG_NAME already exists, skipping tag creation"
else
git tag -a "$TAG_NAME" -m "Release $TAG_NAME"
git push origin "$TAG_NAME"
fi
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3 uses: docker/setup-buildx-action@v3