From 33cc21e60ea7fc95d4e5bc0fb30e850d5992a54b Mon Sep 17 00:00:00 2001 From: sora Date: Thu, 3 Sep 2026 11:58:19 +0200 Subject: [PATCH] Update .github/workflows/build.yml --- .github/workflows/build.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2c4b7b4..f30bac8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,7 +55,13 @@ jobs: - name: Build APK run: | VERSION_CODE=$(git rev-list --count HEAD) - VERSION_NAME=$(git describe --tags --always) + VERSION_BASE=$(git describe --tags --abbrev=0 | sed 's/^v//') + VERSION_DEV=$(git rev-list --count $(git describe --tags --abbrev=0)..HEAD) + if [ $VERSION_DEV -gt 0 ]; then + VERSION_NAME="${VERSION_BASE}.${VERSION_DEV}" + else + VERSION_NAME="${VERSION_BASE}" + fi ./gradlew assembleSignedRelease -PVERSION_CODE=$VERSION_CODE -PVERSION_NAME=$VERSION_NAME - name: Upload APK