-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (32 loc) · 1.06 KB
/
gradle-update.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
name: Gradle Update
on:
schedule:
- cron: "0 17 * * *"
workflow_dispatch:
jobs:
create-update-branch:
name: "Create Update Branch"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
fetch-depth: '25'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-read-only: true
- name: Update Deps
run: ./gradlew versionCatalogUpdate --no-configuration-cache --scan
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v6
with:
branch: "cpr-gradle-update/${{github.job}}/${{github.run_id}}"
commit-message: "[create-pull-request] ${{github.workflow}}"
token: ${{ secrets.TOOLS_PAT }}
- 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 }}