Skip to content

Commit 731860f

Browse files
Update auto_review_documentation.yml
1 parent 6b884d5 commit 731860f

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

.github/workflows/auto_review_documentation.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Auto Review Documentation
33
on:
44
push:
55
branches:
6-
- chienyuanchang/fix_auto_check_documentation
6+
- main
77

88
permissions:
99
id-token: write
@@ -20,7 +20,6 @@ jobs:
2020
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
2121
REPO_NAME: "Azure-Samples/azure-ai-content-understanding-python"
2222
DOC_FILE_FILTER: '\.md$|README|\.ipynb$'
23-
BRANCH_NAME: chienyuanchang/fix_auto_check_documentation
2423

2524
steps:
2625
- name: Checkout code
@@ -42,11 +41,7 @@ jobs:
4241
id: changed-docs
4342
run: |
4443
git diff --name-only ${{ github.event.before }} ${{ github.sha }} > changed_files.txt
45-
if grep -i -E "${DOC_FILE_FILTER}" changed_files.txt > changed_docs.txt; then # -i to ignore case
46-
echo "Filtered doc files found."
47-
else
48-
> changed_docs.txt
49-
fi
44+
grep -i -E "${DOC_FILE_FILTER}" changed_files.txt > changed_docs.txt || > changed_docs.txt # -i ignore case
5045
5146
echo "Files changed with DOC_FILE_FILTER (${DOC_FILE_FILTER}) — could be empty:"
5247
echo "---------------------------------------------------------------"

0 commit comments

Comments
 (0)