2023-10-05 09:22:53 -04:00
|
|
|
name: Execute Gradle Wrapper Upgrade
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
|
|
|
- cron: '0 2 * * *' # 2am UTC
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
upgrade_wrapper:
|
|
|
|
name: Execution
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-10-09 06:40:32 -04:00
|
|
|
- name: Set up Git configuration
|
|
|
|
env:
|
|
|
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2023-10-09 13:10:47 -04:00
|
|
|
run: |
|
|
|
|
git config --global url."https://unused-username:${TOKEN}@github.com/".insteadOf "https://github.com/"
|
2023-10-09 14:40:02 -04:00
|
|
|
git config --global user.name 'github-actions[bot]'
|
|
|
|
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
|
2023-10-05 09:22:53 -04:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 17
|
|
|
|
uses: actions/setup-java@v3
|
|
|
|
with:
|
|
|
|
java-version: '17'
|
|
|
|
distribution: 'temurin'
|
|
|
|
- name: Set up Gradle
|
|
|
|
uses: gradle/gradle-build-action@v2
|
|
|
|
- name: Upgrade Wrappers
|
|
|
|
run: ./gradlew clean upgradeGradleWrapperAll --continue -Porg.gradle.java.installations.auto-download=false
|
|
|
|
env:
|
|
|
|
WRAPPER_UPGRADE_GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|