fix tag fetching and parse behavior

This commit is contained in:
EliotJones
2025-08-04 21:40:28 -05:00
parent e6dd2d15c2
commit bee6f13888

View File

@@ -21,13 +21,12 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Fetch nightly-latest tag - name: Fetch tags
run: | run: git fetch --tags
git fetch origin nightly-latest || true
- id: check - id: check
run: | run: |
latest_commit=$(git rev-parse origin/nightly-latest || echo "") latest_commit=$(git rev-parse nightly-latest || echo "")
echo "Latest published commit: $latest_commit" echo "Latest published commit: $latest_commit"
if [ "$latest_commit" = "${{ github.sha }}" ]; then if [ "$latest_commit" = "${{ github.sha }}" ]; then
echo "No new commit since last publish." echo "No new commit since last publish."