File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ name: Auto Review Documentation
3
3
on :
4
4
push :
5
5
branches :
6
- - chienyuanchang/fix_auto_check_documentation
6
+ - main
7
7
8
8
permissions :
9
9
id-token : write
20
20
GITHUB_TOKEN : ${{ secrets.TOKEN_GITHUB }}
21
21
REPO_NAME : " Azure-Samples/azure-ai-content-understanding-python"
22
22
DOC_FILE_FILTER : ' \.md$|README|\.ipynb$'
23
- BRANCH_NAME : chienyuanchang/fix_auto_check_documentation
24
23
25
24
steps :
26
25
- name : Checkout code
42
41
id : changed-docs
43
42
run : |
44
43
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
50
45
51
46
echo "Files changed with DOC_FILE_FILTER (${DOC_FILE_FILTER}) — could be empty:"
52
47
echo "---------------------------------------------------------------"
You can’t perform that action at this time.
0 commit comments