Update Gradle Wrapper #1053
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update Gradle Wrapper | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
update-gradle-wrapper: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Configure JDK | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "temurin" | |
java-version: "21" | |
- name: Install Android Command Line Tools | |
uses: android-actions/setup-android@v3 | |
- name: Read configured NDK version | |
run: | | |
cargo install toml-cli | |
ANDROID_NDK_VERSION=$(toml get gradle/libs.versions.toml versions.ndk --raw) | |
echo "ANDROID_NDK_VERSION=$ANDROID_NDK_VERSION" >> $GITHUB_ENV | |
shell: bash | |
# COULD_BE_BETTER: Consider turning this into a GitHub action - help the wider community | |
# NDK install (unzipping) is really noisy - silence the log spam with grep, while keeping errors | |
- name: Install NDK (silent) | |
run: .github/scripts/install_ndk.sh $ANDROID_NDK_VERSION | |
- name: Update Gradle Wrapper | |
uses: gradle-update/update-gradle-wrapper-action@v2 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
set-distribution-checksum: false |