Skip to content

Commit bee6f13

Browse files
committed
fix tag fetching and parse behavior
1 parent e6dd2d1 commit bee6f13

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/nightly_release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,12 @@ jobs:
2121
with:
2222
fetch-depth: 0
2323

24-
- name: Fetch nightly-latest tag
25-
run: |
26-
git fetch origin nightly-latest || true
24+
- name: Fetch tags
25+
run: git fetch --tags
2726

2827
- id: check
2928
run: |
30-
latest_commit=$(git rev-parse origin/nightly-latest || echo "")
29+
latest_commit=$(git rev-parse nightly-latest || echo "")
3130
echo "Latest published commit: $latest_commit"
3231
if [ "$latest_commit" = "${{ github.sha }}" ]; then
3332
echo "No new commit since last publish."

0 commit comments

Comments
 (0)