Skip to content

Commit 3e68816

Browse files
committed
Update .github/workflows/semver.yml
1 parent 8fd7bf2 commit 3e68816

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/semver.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,12 @@ jobs:
3131
- name: Get latest tag
3232
id: tag
3333
run: |
34-
echo "ref=$(git tag --sort=-creatordate | head -n 1)" >> "$GITHUB_OUTPUT"
34+
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"
3540
3641
- uses: mozilla/actions/nss@25cb84d060946c0ad6d2c3f79da479b16d180d71 # v1.1.0
3742
with:

0 commit comments

Comments
 (0)