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 66 - ' main'
77
88jobs :
9- build :
9+ release-notes-changed :
1010 runs-on : ubuntu-latest
1111 steps :
1212 - uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -18,12 +18,16 @@ jobs:
1818
1919 - name : Get changed changelog files
2020 id : changed-files
21- uses :
tj-actions/[email protected] 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
2731
2832 - name : Set up JDK 17
2933 uses : actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
You can’t perform that action at this time.
0 commit comments