Fix tag checking to fetch tags from remote

Co-authored-by: wheaney <42350981+wheaney@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2026-02-13 19:47:07 +00:00
parent 98893acbc6
commit 54457d9283
1 changed files with 2 additions and 1 deletions

View File

@ -17,7 +17,7 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
fetch-depth: 2 fetch-depth: 0
- name: Get version from VERSION file - name: Get version from VERSION file
id: get-version id: get-version
@ -30,6 +30,7 @@ jobs:
id: check-tag id: check-tag
run: | run: |
VERSION=$(cat VERSION) VERSION=$(cat VERSION)
git fetch --tags
if git rev-parse "v$VERSION" >/dev/null 2>&1; then if git rev-parse "v$VERSION" >/dev/null 2>&1; then
echo "Tag v$VERSION already exists, skipping release" echo "Tag v$VERSION already exists, skipping release"
echo "should-release=false" >> $GITHUB_OUTPUT echo "should-release=false" >> $GITHUB_OUTPUT