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
geokrety-bot committed Dec 29, 2024
1 parent c5b55bf commit 87d30b7
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 87d30b7

Please sign in to comment.