File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 6
6
- ' main'
7
7
8
8
jobs :
9
- build :
9
+ release-notes-changed :
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- uses : actions/checkout@v4.1.1
@@ -18,12 +18,16 @@ jobs:
18
18
19
19
- name : Get changed changelog files
20
20
id : changed-files
21
- uses : tj-actions/changed-files@v41.0.0
22
- with :
23
- files_ignore : |
24
- plugins/**
25
- files : |
26
- **/CHANGELOG.md
21
+ run : |
22
+ git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha}} | grep CHANGELOG.md > /tmp/changelog_file_list.txt
23
+ if [[ "$?" == "0" ]]
24
+ then
25
+ echo "any_changed=true" >> $GITHUB_OUTPUT
26
+ else
27
+ echo "any_changed=false" >> $GITHUB_OUTPUT
28
+ fi
29
+ echo "all_changed_files=$(cat /tmp/changelog_file_list.txt)" >> $GITHUB_OUTPUT
30
+ rm /tmp/changelog_file_list.txt
27
31
28
32
- name : Set up JDK 17
29
33
uses : actions/setup-java@v4.1.0
You can’t perform that action at this time.
0 commit comments