From 54457d9283d0045022cb7a88c75cb48e3d9e1209 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 13 Feb 2026 19:47:07 +0000 Subject: [PATCH] Fix tag checking to fetch tags from remote Co-authored-by: wheaney <42350981+wheaney@users.noreply.github.com> --- .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 c84f431..87e69d9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - fetch-depth: 2 + fetch-depth: 0 - name: Get version from VERSION file id: get-version @@ -30,6 +30,7 @@ jobs: id: check-tag run: | VERSION=$(cat VERSION) + git fetch --tags if git rev-parse "v$VERSION" >/dev/null 2>&1; then echo "Tag v$VERSION already exists, skipping release" echo "should-release=false" >> $GITHUB_OUTPUT