Skip to content

Update Gradle Wrapper #225

Update Gradle Wrapper

Update Gradle Wrapper #225

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 }}>