Skip to content

Commit 5125cdf

Browse files
Update auto_review_documentation.yml
1 parent f455176 commit 5125cdf

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/auto_review_documentation.yml

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

88
permissions:
99
id-token: write
@@ -20,6 +20,7 @@ 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
2324

2425
steps:
2526
- name: Checkout code
@@ -40,10 +41,8 @@ jobs:
4041
- name: Get changed files
4142
id: changed-docs
4243
run: |
43-
# Retrieve list of files changed between the previous commit and the current SHA
4444
git diff --name-only ${{ github.event.before }} ${{ github.sha }} > changed_files.txt
45-
# filter to include only documentation files (e.g., .md, .rst, README, .ipynb)
46-
grep -E "${DOC_FILE_FILTER}" changed_files.txt || true > changed_docs.txt
45+
grep -E "${DOC_FILE_FILTER}" changed_files.txt > changed_docs.txt || echo "" > changed_docs.txt
4746
echo "Files changed with DOC_FILE_FILTER (${DOC_FILE_FILTER}) — could be empty:"
4847
echo "---------------------------------------------------------------"
4948
cat changed_docs.txt

0 commit comments

Comments
 (0)