@@ -3,7 +3,7 @@ name: Auto Review Documentation
3
3
on :
4
4
push :
5
5
branches :
6
- - chienyuanchang/check_description_after_merge # change to main later
6
+ - chienyuanchang/check_description_after_merge # TODO: change to main later
7
7
8
8
permissions :
9
9
id-token : write
@@ -19,11 +19,13 @@ jobs:
19
19
AZURE_OPENAI_API_VERSION : " 2024-12-01-preview"
20
20
GITHUB_TOKEN : ${{ secrets.TOKEN_GITHUB }}
21
21
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
23
23
24
24
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
27
29
28
30
- name : Set up Python
29
31
uses : actions/setup-python@v4
@@ -35,17 +37,13 @@ jobs:
35
37
python -m pip install --upgrade pip
36
38
pip install azure-identity python-dotenv PyGithub openai unidiff requests
37
39
38
- - name : Checkout code
39
- uses : actions/checkout@v4
40
- with :
41
- fetch-depth : 0 # Critical for comparing two SHAs
42
-
43
40
- name : Get changed files
44
41
id : changed-docs
45
42
run : |
46
43
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
49
47
50
48
- name : Azure Login
51
49
uses : azure/login@v2
0 commit comments