From bee6f13888f58febd83841c09cbe4e7bde7eaf70 Mon Sep 17 00:00:00 2001 From: EliotJones Date: Mon, 4 Aug 2025 21:40:28 -0500 Subject: [PATCH] fix tag fetching and parse behavior --- .github/workflows/nightly_release.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/nightly_release.yml b/.github/workflows/nightly_release.yml index 13818e51..84362de0 100644 --- a/.github/workflows/nightly_release.yml +++ b/.github/workflows/nightly_release.yml @@ -21,13 +21,12 @@ jobs: with: fetch-depth: 0 - - name: Fetch nightly-latest tag - run: | - git fetch origin nightly-latest || true + - name: Fetch tags + run: git fetch --tags - id: check run: | - latest_commit=$(git rev-parse origin/nightly-latest || echo "") + latest_commit=$(git rev-parse nightly-latest || echo "") echo "Latest published commit: $latest_commit" if [ "$latest_commit" = "${{ github.sha }}" ]; then echo "No new commit since last publish."