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 13c376a commit 0280892Copy full SHA for 0280892
1 file changed
.github/workflows/cd.yml
@@ -50,8 +50,8 @@ jobs:
50
- name: Get latest version from git tags
51
id: get_version
52
run: |
53
- # Get the latest version tag, default to 0.0.0 if none exists
54
- LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
+ # Get the latest semantic version tag, default to 0.0.0 if none exists
+ LATEST_TAG=$(git tag --list "v*" --sort=-version:refname | head -n1 || echo "v0.0.0")
55
# Remove 'v' prefix and increment patch version
56
VERSION=${LATEST_TAG#v}
57
IFS='.' read -r major minor patch <<< "$VERSION"
0 commit comments