From 3a20e375ad8d286c379b9094dd358c23b6522d97 Mon Sep 17 00:00:00 2001 From: Martin <32832476+BXYMartin@users.noreply.github.com> Date: Tue, 5 Mar 2024 15:01:03 +0000 Subject: [PATCH] Update build-release.yml to get correct build version --- .github/workflows/build-release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 728e9d8..1ecac84 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -32,6 +32,13 @@ jobs: - name: Build APK run: bash ./gradlew assembleRelease + - name: Get Build Tool Version + shell: bash + run: | + BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1) + echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV + echo Last build tool version is: $BUILD_TOOL_VERSION + # https://github.com/marketplace/actions/sign-android-release - name: Sign APK id: sign_apk @@ -42,6 +49,8 @@ jobs: alias: ${{ secrets.ALIAS }} keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} keyPassword: ${{ secrets.KEY_PASSWORD }} + env: + BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} # https://github.com/marketplace/actions/auto-changelog # require commit format are "type(category): description [flag]"