Update Gradle Wrapper #616
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: Update Gradle Wrapper | |
on: | |
schedule: | |
- cron: "0 14 * * *" | |
workflow_dispatch: | |
jobs: | |
update-gradle-wrapper: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }} | |
fetch-depth: '25' | |
- name: Setup Current Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
with: | |
gradle-version: current | |
- run: gradle wrapper --distribution-type all | |
- name: Create Pull Request | |
id: cpr | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
branch: "create-pull-request/${{github.job}}/${{github.run_id}}" | |
commit-message: "[patch] ${{github.workflow}}" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Enable Pull Request Automerge | |
if: steps.cpr.outputs.pull-request-operation == 'created' | |
run: gh pr merge --rebase --auto "${{ steps.cpr.outputs.pull-request-number }}" | |
env: | |
GH_TOKEN: ${{ secrets.TOOLS_PAT }} |