Update Gradle Wrapper #225
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: | |
schedule: | |
- cron: '0 0 * * MON' | |
jobs: | |
update-wrapper: | |
if: github.repository == 'micronaut-projects/micronaut-project-template' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
token: ${{ secrets.GH_TOKEN }} | |
- name: "Update Gradle Wrapper" | |
id: update | |
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/[email protected] | |
- 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 }}> |