-
Notifications
You must be signed in to change notification settings - Fork 5
50 lines (44 loc) · 1.37 KB
/
update_dependencies.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Update Dependencies
on:
workflow_dispatch:
schedule:
- cron: "0 4 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout to push branch
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
fetch-depth: 0
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: 17
distribution: 'corretto'
- name: Update dependencies
run: |
export GRADLE_USER_HOME=$(pwd)/.gradle
chmod +x ./gradlew
./gradlew versionCatalogUpdate
- name: Create report env variable
run: |
{
echo 'REPORT<<EOF'
cat build/dependencyUpdates/report.txt | tail -n +6
echo EOF
} >> "$GITHUB_ENV"
- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
token: ${{ secrets.PAT }}
commit-message: update dependencies
committer: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
signoff: false
branch: github-actions-bot/update-deps
delete-branch: true
title: 'Update Dependencies'
body: ${{ env.REPORT }}
reviewers: ${{ github.actor }}