Skip to content

Commit 289f984

Browse files
committed
Fix for failing to check out the latest tag
1 parent eb4ccbe commit 289f984

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/build-push-apptainer.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,8 @@ jobs:
3333
- name: Get latest tag from history
3434
id: tag
3535
run: |
36-
git fetch --tags
3736
if ! LATEST_TAG=$(git describe --tags --abbrev=0); then
38-
echo "::error::No tags found in repository"
37+
echo "::error::Latest tag not found in repository"
3938
exit 1
4039
fi
4140
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV

.github/workflows/build-push-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
id: tag
2626
run: |
2727
if ! LATEST_TAG=$(git describe --tags --abbrev=0); then
28-
echo "::error::No tags found in repository"
28+
echo "::error::Latest tag not found in repository"
2929
exit 1
3030
fi
3131
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV

0 commit comments

Comments
 (0)