Update Gradle Wrapper #868
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@v3 | |
with: | |
distribution: "adopt" | |
java-version: "17" # matches Anki-Android | |
- name: Install Android Command Line Tools | |
uses: android-actions/setup-android@v2 | |
# 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 26.1.10909125 | |
- name: Update Gradle Wrapper | |
uses: gradle-update/update-gradle-wrapper-action@v1 | |
with: | |
repo-token: ${{ secrets.GITHUB_TOKEN }} | |
set-distribution-checksum: false |