-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (32 loc) · 1.06 KB
/
update-gradle-wrapper.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Update Gradle Wrapper
on:
schedule:
- cron: "0 14 * * *"
workflow_dispatch:
jobs:
update-gradle-wrapper:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
fetch-depth: '25'
- uses: burrunan/gradle-cache-action@v1
name: Update Deps
with:
gradle-version: current
arguments: wrapper --distribution-type all
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v3
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'
uses: peter-evans/enable-pull-request-automerge@v2
with:
token: ${{ secrets.TOOLS_PAT }}
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
merge-method: rebase