From cdd2b5921dabfb0b7808b9d1d7a878c798dd0444 Mon Sep 17 00:00:00 2001 From: oldkingOK Date: Sun, 28 Jul 2024 14:14:46 +0800 Subject: [PATCH] ci: fix sign failure https://github.com/r0adkll/sign-android-release/issues/84 --- .github/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5e7d866..2b60160 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,6 +24,13 @@ jobs: distribution: 'adopt' java-version: '17' architecture: x64 + + - name: Setup build tool version variable + 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 - name: Set up Go run: | @@ -79,6 +86,8 @@ jobs: alias: ${{ secrets.ALIAS }} keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }} keyPassword: ${{ secrets.KEY_PASSWORD }} + env: + BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }} - name: Rename APK run: