Skip to content

Commit 08f7a66

Browse files
committed
only consider proper version tags
1 parent b203b6e commit 08f7a66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ jobs:
199199
echo "::group::Version generation"
200200
# Get the latest tag from git
201201
git fetch --tags
202-
LATEST_TAG=$(git describe --tags --match 'v*' --abbrev=0 2>/dev/null || echo "v0.0.0")
202+
LATEST_TAG=$(git describe --tags --match 'v[0-9]*.[0-9]*.[0-9]*' --abbrev=0 2>/dev/null || echo "v0.0.0")
203203
echo "Latest tag: $LATEST_TAG"
204204
205205
# Parse the latest tag to get major, minor, and patch

0 commit comments

Comments
 (0)