Skip to content

Commit c49e58b

Browse files
authored
Merge pull request #233 from yuchen0cc/main
release: git tag sort by version
2 parents 5ad1706 + 1295ff1 commit c49e58b

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
@@ -38,7 +38,7 @@ jobs:
3838
RELEASE_VERSION=${{ env.RELEASE_VERSION }}
3939
if [[ -z ${RELEASE_VERSION} ]]; then
4040
git fetch --tags
41-
RELEASE_VERSION=$(git tag -l v* | tail -1)
41+
RELEASE_VERSION=$(git tag --sort=v:refname -l v* | tail -1)
4242
fi
4343
RELEASE_VERSION=${RELEASE_VERSION#v}
4444
echo "RELEASE_VERSION=${RELEASE_VERSION}"

0 commit comments

Comments
 (0)