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 5a006cd commit 9054f50Copy full SHA for 9054f50
1 file changed
.github/workflows/release.yml
@@ -124,9 +124,10 @@ jobs:
124
elif [ -n "$dispatch_tag" ]; then
125
tag="$dispatch_tag"
126
else
127
- if ! tag="$(git describe --tags --abbrev=0 2>/tmp/git_describe_error.log)"; then
128
- echo "Failed to resolve tag via git describe. Ensure repository history and tags are available." >&2
129
- cat /tmp/git_describe_error.log >&2 || true
+ # workflow_dispatch without explicit tag should default to latest stable v-tag.
+ tag="$(git tag --list 'v*' --sort=-version:refname | grep -E '^v[0-9]+(\.[0-9]+)*$' | head -n1)"
+ if [ -z "$tag" ]; then
130
+ echo "Failed to resolve latest stable v-tag." >&2
131
exit 1
132
fi
133
0 commit comments