fix: improve tag existence check by using local tags
Some checks failed
Generate Manifest & Tag / tag (push) Failing after 3s

This commit is contained in:
2026-02-01 01:01:41 +00:00
parent 10a46f8668
commit 2f0a44706b

View File

@@ -85,7 +85,8 @@ jobs:
id: tagcheck
run: |
TAG="v${{ steps.meta.outputs.version }}"
if git ls-remote --tags origin "refs/tags/$TAG" | grep -q "$TAG"; then
git fetch --tags --force
if git tag -l "$TAG" | grep -qx "$TAG"; then
echo "exists=true" >> "$GITHUB_OUTPUT"
else
echo "exists=false" >> "$GITHUB_OUTPUT"