Skip to content

Update Gradle Wrapper #194

Update Gradle Wrapper

Update Gradle Wrapper #194

# 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 "latest_version=${latest}" >> $GITHUB_OUTPUT
./gradlew wrapper --gradle-version $latest
- uses: gradle/wrapper-validation-action@v1
- uses: stefanzweifel/git-auto-commit-action@v5
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 }}>