Skip to content

Commit

Permalink
ci: update git tag sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
j-hc authored Nov 10, 2022
1 parent 9068ffd commit 99e57aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Get next version code
id: next_ver_code
run: |
TAG=$(git tag --sort=creatordate | tail -1)
TAG=$(git tag -l --sort=version:refname | tail -1)
if [ -z "$TAG" ]; then TAG=0; fi
echo "NEXT_VER_CODE=$((TAG + 1))" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 99e57aa

Please sign in to comment.