Skip to content

Commit 28ef075

Browse files
Update auto_review_documentation.yml
1 parent 515ae1b commit 28ef075

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/auto_review_documentation.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,11 @@ jobs:
4141
id: changed-docs
4242
run: |
4343
# Retrieve list of files changed between the previous commit and the current SHA
44-
git diff --name-only ${{ github.event.before }} ${{ github.sha }} > changed_files.txt
44+
# --diff-filter=d exclude deleted files
45+
git diff --name-only --diff-filter=d ${{ github.event.before }} ${{ github.sha }} > changed_files.txt
4546
# filter to include only documentation files
46-
grep -i -E "${DOC_FILE_FILTER}" changed_files.txt > changed_docs.txt || > changed_docs.txt # -i ignore case
47+
# -i ignore case
48+
grep -i -E "${DOC_FILE_FILTER}" changed_files.txt > changed_docs.txt || > changed_docs.txt
4749
4850
echo "Files changed with DOC_FILE_FILTER (${DOC_FILE_FILTER}) — could be empty:"
4951
echo "---------------------------------------------------------------"

0 commit comments

Comments
 (0)