Skip to content

Commit

Permalink
ci: Dynamically set build tools version
Browse files Browse the repository at this point in the history
  • Loading branch information
kumy authored and actions-user committed Jan 3, 2025
1 parent 95dc490 commit cde96a5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ jobs:
ref: ${{ inputs.ref || github.ref }}
fetch-depth: 0

- 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: Download APK from build
uses: actions/download-artifact@v3
with:
Expand All @@ -81,7 +88,7 @@ jobs:
keyStorePassword: ${{ secrets.KEY_STORE_PASSWORD }}
keyPassword: ${{ secrets.KEY_PASSWORD }}
env:
BUILD_TOOLS_VERSION: "32.0.0"
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}

- name: 'Get Previous tag'
id: previoustag
Expand Down

0 comments on commit cde96a5

Please sign in to comment.