From 2f0a44706b14478c82129ff04d3629493a84aae9 Mon Sep 17 00:00:00 2001 From: Roberto Guagliardo Date: Sun, 1 Feb 2026 01:01:41 +0000 Subject: [PATCH] fix: improve tag existence check by using local tags --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"