We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fd7bf2 commit 3e68816Copy full SHA for 3e68816
1 file changed
.github/workflows/semver.yml
@@ -31,7 +31,12 @@ jobs:
31
- name: Get latest tag
32
id: tag
33
run: |
34
- echo "ref=$(git tag --sort=-creatordate | head -n 1)" >> "$GITHUB_OUTPUT"
+ TAG=$(git tag --sort=-version:refname | head -n 1)
35
+ if [ -z "$TAG" ]; then
36
+ echo "::error::No tags found; cannot determine semver baseline"
37
+ exit 1
38
+ fi
39
+ echo "ref=$TAG" >> "$GITHUB_OUTPUT"
40
41
- uses: mozilla/actions/nss@25cb84d060946c0ad6d2c3f79da479b16d180d71 # v1.1.0
42
with:
0 commit comments