We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fe5054 commit 17fbff6Copy full SHA for 17fbff6
.github/workflows/version-or-publish.yml
@@ -59,7 +59,12 @@ jobs:
59
continue-on-error: false
60
run: |
61
git fetch --tags
62
- echo "new_tag=$(git describe --tags --abbrev=0)" >> $GITHUB_OUTPUT
+ tag=$(git for-each-ref --sort=-creatordate --format '%(refname:short)' refs/tags | head -n 1)
63
+ if [ -z "$tag" ]; then
64
+ echo "new_tag=$last_tag" >> $GITHUB_OUTPUT
65
+ else
66
+ echo "new_tag=$tag" >> $GITHUB_OUTPUT
67
+ fi
68
69
- name: Convert version to anchor format
70
id: version_anchor
0 commit comments