Revert "ci: update git tag sorting"

This reverts commit 99e57aaffce0e2394329533822a726d4fa5741b0.
This commit is contained in:
j-hc 2022-11-12 02:42:51 +03:00
parent 99e57aaffc
commit b09e34bfae

View File

@ -19,7 +19,7 @@ jobs:
- name: Get next version code - name: Get next version code
id: next_ver_code id: next_ver_code
run: | run: |
TAG=$(git tag -l --sort=version:refname | tail -1) TAG=$(git tag --sort=creatordate | tail -1)
if [ -z "$TAG" ]; then TAG=0; fi if [ -z "$TAG" ]; then TAG=0; fi
echo "NEXT_VER_CODE=$((TAG + 1))" >> $GITHUB_OUTPUT echo "NEXT_VER_CODE=$((TAG + 1))" >> $GITHUB_OUTPUT