Skip to content

Commit e8df316

Browse files
committed
get all the changed files and list the markdown ones
1 parent 56b84f8 commit e8df316

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/changelog_test.yml

+17
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,23 @@ jobs:
2020
echo "Changed files:"
2121
echo "${{ github.event.pull_request.changed_files }}"
2222
23+
- name: Get all changed markdown files
24+
id: changed-markdown-files
25+
uses: tj-actions/changed-files@v44
26+
with:
27+
# Avoid using single or double quotes for multiline patterns
28+
files: |
29+
**.md
30+
31+
- name: List all changed files markdown files
32+
if: steps.changed-markdown-files.outputs.any_changed == 'true'
33+
env:
34+
ALL_CHANGED_FILES: ${{ steps.changed-markdown-files.outputs.all_changed_files }}
35+
run: |
36+
for file in ${ALL_CHANGED_FILES}; do
37+
echo "$file was changed"
38+
done
39+
2340
- name: Check for CHANGELOG.md update
2441
id: changelog-check
2542
run: |

0 commit comments

Comments
 (0)