diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 39c6ae4..85ba089 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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"