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 b19b1c9 commit 88dfac1Copy full SHA for 88dfac1
.github/actions/ci/generate-release/action.yml
@@ -63,7 +63,11 @@ runs:
63
run: |
64
# Fetch all tags
65
git fetch --tags --force
66
- tag=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
+ # Get the latest tag matching v<major>.<minor>.<patch>
67
+ tag=$(git tag --list 'v[0-9]*.[0-9]*.[0-9]*' | sort -V | tail -n 1)
68
+ if [ -z "$tag" ]; then
69
+ tag="v0.0.0"
70
+ fi
71
echo "tag=$tag" >> $GITHUB_OUTPUT
72
echo "✅ Latest tag: $tag"
73
0 commit comments