This repository has been archived by the owner on Sep 16, 2024. It is now read-only.
Upgrade Gradle and Maven Wrappers #288
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: Upgrade Gradle and Maven Wrappers | |
on: | |
schedule: | |
- cron: '0 0 * * *' # Every day at 00:00 UTC | |
workflow_dispatch: | |
env: | |
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }} | |
WRAPPER_UPGRADE_GIT_TOKEN: ${{ secrets.GH_TOKEN }} | |
jobs: | |
Gradle: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 21 | |
- name: Set up Git | |
run: | | |
git config --global user.name "JUnit Team" | |
git config --global user.email "[email protected]" | |
git config --global url."https://unused-username:${WRAPPER_UPGRADE_GIT_TOKEN}@github.com/".insteadOf "https://github.com/" | |
- uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: upgradeGradleWrapperAll | |
Maven: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: temurin | |
java-version: 21 | |
- name: Set up Git | |
run: | | |
git config --global user.name "JUnit Team" | |
git config --global user.email "[email protected]" | |
git config --global url."https://unused-username:${WRAPPER_UPGRADE_GIT_TOKEN}@github.com/".insteadOf "https://github.com/" | |
- uses: gradle/gradle-build-action@v2 | |
with: | |
arguments: upgradeMavenWrapperAll |