Update Gradle Wrapper #148
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
# WARNING: Do not edit this file directly. Instead, go to: | |
# | |
# https://github.com/micronaut-projects/micronaut-project-template/tree/master/.github/workflows | |
# | |
# and edit them there. Note that it will be sync'ed to all the Micronaut repos | |
name: Update Gradle Wrapper | |
on: | |
schedule: | |
- cron: '0 3 * * SAT' | |
jobs: | |
update-wrapper: | |
if: github.repository == 'micronaut-projects/micronaut-project-template' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
- name: "Update Gradle Wrapper" | |
id: update | |
env: | |
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | |
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USERNAME }} | |
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }} | |
run: | | |
latest=`curl -s https://services.gradle.org/versions/current | jq -cr ".version"` | |
echo ::set-output name=latest_version::${latest} | |
./gradlew wrapper --gradle-version $latest | |
- uses: gradle/wrapper-validation-action@v3 | |
- uses: stefanzweifel/[email protected] | |
with: | |
commit_message: Upgrade Gradle Wrapper to ${{ steps.update.outputs.latest_version }} | |
commit_user_name: micronaut-build | |
commit_user_email: ${{ secrets.MICRONAUT_BUILD_EMAIL }} | |
commit_author: micronaut-build <${{ secrets.MICRONAUT_BUILD_EMAIL }}> |