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:
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."