Gradle #247
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: Gradle | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "30 5 * * MON-FRI" # Every weekday at 05:30 UTC | |
push: | |
paths: | |
- gradlew | |
- gradlew.bat | |
- gradle/** | |
jobs: | |
validate-wrapper: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: gradle/wrapper-validation-action@v1 | |
update-wrapper: | |
runs-on: ubuntu-latest | |
if: github.ref_name == 'main' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Setup GPG commit verification | |
uses: crazy-max/ghaction-import-gpg@82a020f1f7f605c65dd2449b392a52c3fcfef7ef # v6.0.0 | |
with: | |
gpg_private_key: ${{ secrets.BOT_GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.BOT_GPG_PASSPHRASE }} | |
git_user_signingkey: true | |
git_commit_gpgsign: true | |
- uses: gradle-update/update-gradle-wrapper-action@v1 | |
with: | |
labels: dependencies | |
repo-token: ${{ secrets.BOT_GITHUB_TOKEN }} | |
- name: Reset commit author # workaround for https://github.com/gradle-update/update-gradle-wrapper-action/issues/124 | |
run: | | |
if [ "$(git branch --show-current)" != main ]; then | |
git config --local user.name probation-integration-bot | |
git config --local user.email [email protected] | |
git commit --amend --reset-author --no-edit | |
git push --set-upstream origin "$(git branch --show-current)" --force | |
fi |