Skip to content

Update Gradle Wrapper #220

Update Gradle Wrapper

Update Gradle Wrapper #220

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/wrapper-validation-action@v3.5.0
- uses: stefanzweifel/git-auto-commit-action@v5.0.1
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 }}>