Skip to content

Commit 46296fc

Browse files
Update auto_review_documentation.yml
1 parent bf3f366 commit 46296fc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/auto_review_documentation.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,13 @@ jobs:
4242
id: changed-docs
4343
run: |
4444
git diff --name-only ${{ github.event.before }} ${{ github.sha }} > changed_files.txt
45-
grep -E "${DOC_FILE_FILTER}" changed_files.txt > changed_docs.txt || echo "" > changed_docs.txt
45+
if grep -E "${DOC_FILE_FILTER}" changed_files.txt > changed_docs.txt; then
46+
echo "Filtered doc files found."
47+
else
48+
echo "No doc files matched DOC_FILE_FILTER (${DOC_FILE_FILTER})."
49+
> changed_docs.txt
50+
fi
51+
4652
echo "Files changed with DOC_FILE_FILTER (${DOC_FILE_FILTER}) — could be empty:"
4753
echo "---------------------------------------------------------------"
4854
cat changed_docs.txt

0 commit comments

Comments
 (0)