From b09e34bfaead946f8c04bf0c8d3d69ef92ecc4f9 Mon Sep 17 00:00:00 2001 From: j-hc Date: Sat, 12 Nov 2022 02:42:51 +0300 Subject: [PATCH] Revert "ci: update git tag sorting" This reverts commit 99e57aaffce0e2394329533822a726d4fa5741b0. --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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