mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-08 00:14:35 +08:00
fix tag fetching and parse behavior
This commit is contained in:
7
.github/workflows/nightly_release.yml
vendored
7
.github/workflows/nightly_release.yml
vendored
@@ -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."
|
||||||
|
Reference in New Issue
Block a user