diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8144b01..28e444a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,7 +19,7 @@ jobs: - name: Get next version code id: next_ver_code run: | - TAG=$(git tag -l --sort=version:refname | tail -1) + TAG=$(git tag --sort=creatordate | tail -1) if [ -z "$TAG" ]; then TAG=0; fi echo "NEXT_VER_CODE=$((TAG + 1))" >> $GITHUB_OUTPUT