Skip to content

Commit 7235149

Browse files
kumyactions-user
authored andcommitted
ci: Dynamically set build tools version
Relates r0adkll/sign-android-release#84
1 parent 2c173c2 commit 7235149

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/android.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,13 @@ jobs:
6060
ref: ${{ inputs.ref || github.ref }}
6161
fetch-depth: 0
6262

63+
- name: Setup build tool version variable
64+
shell: bash
65+
run: |
66+
BUILD_TOOL_VERSION=$(ls /usr/local/lib/android/sdk/build-tools/ | tail -n 1)
67+
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
68+
echo Last build tool version is: $BUILD_TOOL_VERSION
69+
6370
- name: Download APK from build
6471
uses: actions/download-artifact@v3
6572
with:
@@ -81,7 +88,7 @@ jobs:
8188
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
8289
keyPassword: ${{ secrets.KEY_PASSWORD }}
8390
env:
84-
BUILD_TOOLS_VERSION: "32.0.0"
91+
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}
8592

8693
- name: 'Get Previous tag'
8794
id: previoustag

0 commit comments

Comments
 (0)