generated from cortinico/kotlin-gradle-plugin-template
-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.1 KB
/
update-graphs-pr.yaml
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
name: Create PR when dependency graphs change
on:
push:
branches:
- main
# - ab/test-graphs-pr
jobs:
create-pr:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Cache Gradle Caches
uses: gradle/gradle-build-action@v3
- name: Generate graphs
run: ./gradlew :example:dependencyGraph
if: success()
# Get changed files list and set them to `outputs.changed`
- id: get-pr-body
run: |
./.github/ci-scripts/changed_files.sh
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
add-paths: |
dependencyGraph.md
**/dependencyGraph.md
commit-message: Updated dependency graphs
branch: updated-dependency-graphs
delete-branch: true
title: Updated dependency graphs
body: |
## Description
Dependency graphs have been updated.
List of changed files:
${{steps.get-pr-body.outputs.changed}}