-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (49 loc) · 1.65 KB
/
dependency-update.yml
File metadata and controls
49 lines (49 loc) · 1.65 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Dependency Update
on:
schedule:
- cron: "0 17 * * *"
workflow_dispatch:
permissions: write-all
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: Configure AWS credentials (Local)
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: arn:aws:iam::174159267544:role/LocalDevelopment
aws-region: us-east-1
- name: Set up JDK
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: '22'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: true
- name: Update Deps
run: ./gradlew versionCatalogUpdate --no-configuration-cache
- name: Clean
run: ./gradlew clean
- name: Update Yarn Lock
run: ./gradlew kotlinUpgradeYarnLock --no-configuration-cache --no-build-cache
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@v5
with:
branch: "cpr-gradle-update/${{github.job}}/${{github.run_id}}"
commit-message: "[update-deps] ${{github.workflow}}"
token: ${{ secrets.GITHUB_TOKEN }}
labels: autorebase:opt-in
delete-branch: true
- name: Enable Pull Request Auto-merge
if: steps.cpr.outputs.pull-request-operation == 'created'
run: gh pr merge --rebase --auto "${{ steps.cpr.outputs.pull-request-number }}"
env:
GH_TOKEN: ${{ secrets.COUPLING_PAT }}