Skip to content

Commit ea60bcf

Browse files
Update auto_review_documentation.yml
1 parent ea4c5cc commit ea60bcf

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/auto_review_documentation.yml

Lines changed: 9 additions & 11 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/check_description_after_merge # change to main later
6+
- chienyuanchang/check_description_after_merge # TODO: change to main later
77

88
permissions:
99
id-token: write
@@ -19,11 +19,13 @@ jobs:
1919
AZURE_OPENAI_API_VERSION: "2024-12-01-preview"
2020
GITHUB_TOKEN: ${{ secrets.TOKEN_GITHUB }}
2121
REPO_NAME: "Azure-Samples/azure-ai-content-understanding-python"
22-
BRANCH_NAME: "chienyuanchang/check_description_after_merge" # remove later
22+
BRANCH_NAME: "chienyuanchang/check_description_after_merge" # TODO: remove later
2323

2424
steps:
25-
- name: Checkout Repo
26-
uses: actions/checkout@v3
25+
- name: Checkout code
26+
uses: actions/checkout@v4
27+
with:
28+
fetch-depth: 0 # Critical for comparing two SHAs
2729

2830
- name: Set up Python
2931
uses: actions/setup-python@v4
@@ -35,17 +37,13 @@ jobs:
3537
python -m pip install --upgrade pip
3638
pip install azure-identity python-dotenv PyGithub openai unidiff requests
3739
38-
- name: Checkout code
39-
uses: actions/checkout@v4
40-
with:
41-
fetch-depth: 0 # Critical for comparing two SHAs
42-
4340
- name: Get changed files
4441
id: changed-docs
4542
run: |
4643
git diff --name-only ${{ github.event.before }} ${{ github.sha }} > changed_files.txt
47-
grep -E '\.md$|\.rst$|README' changed_files.txt || true > changed_docs.txt
48-
cat changed_docs.txt
44+
# TODO: enable for documentation file only
45+
# grep -E '\.md$|\.rst$|README|\.ipynb$' changed_files.txt || true > changed_docs.txt
46+
cat changed_files.txt # changed_docs.txt
4947
5048
- name: Azure Login
5149
uses: azure/login@v2

0 commit comments

Comments
 (0)