From 124f7b4e9491a2bae06193a6f91247910c2b923e Mon Sep 17 00:00:00 2001 From: Roberto Guagliardo Date: Sat, 10 Jan 2026 15:36:01 +0000 Subject: [PATCH] fix: Improve tag existence check in release workflow --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b6358dd..eaf247f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,6 +28,9 @@ jobs: with: fetch-depth: 0 + - name: Fetch tags + run: git fetch --tags origin + - name: Determine plugin version id: meta run: | @@ -43,7 +46,7 @@ jobs: id: tagcheck run: | TAG="v${{ steps.meta.outputs.version }}" - if git rev-parse "$TAG" >/dev/null 2>&1; then + if git show-ref --tags --verify --quiet "refs/tags/$TAG"; then echo "exists=true" >> "$GITHUB_OUTPUT" else echo "exists=false" >> "$GITHUB_OUTPUT"