Skip to content

Commit 369f68a

Browse files
committed
Update to fetch-depth 2
1 parent 10a9b21 commit 369f68a

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/update-docs-alpha.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
steps:
1212
- name: Checkout code
1313
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 2 # Fetch current commit and previous commit for comparison
1416

1517
- name: Set up Python
1618
uses: actions/setup-python@v4
@@ -27,6 +29,7 @@ jobs:
2729
FIRESTORE_PROJECT_ID: ${{ secrets.ALPHA_FIRESTORE_PROJECT_ID }}
2830
FIRESTORE_CREDENTIALS_JSON: ${{ secrets.ALPHA_FIRESTORE_CREDENTIALS_JSON }}
2931
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
32+
GITHUB_BASE_SHA: ${{ github.event.before }}
3033
run: |
3134
python update_docs.py --mode incremental
3235

.github/workflows/update-docs-dev.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
steps:
1212
- name: Checkout code
1313
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 2 # Fetch current commit and previous commit for comparison
1416

1517
- name: Set up Python
1618
uses: actions/setup-python@v4
@@ -27,6 +29,7 @@ jobs:
2729
FIRESTORE_PROJECT_ID: ${{ secrets.DEV_FIRESTORE_PROJECT_ID }}
2830
FIRESTORE_CREDENTIALS_JSON: ${{ secrets.DEV_FIRESTORE_CREDENTIALS_JSON }}
2931
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
32+
GITHUB_BASE_SHA: ${{ github.event.before }}
3033
run: |
3134
python update_docs.py --mode incremental
3235

.github/workflows/update-docs-prod.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Checkout code
1313
uses: actions/checkout@v4
1414
with:
15-
fetch-depth: 0 # Fetch all history so we can compare commits
15+
fetch-depth: 2 # Fetch current commit and previous commit for comparison
1616

1717
- name: Set up Python
1818
uses: actions/setup-python@v4

0 commit comments

Comments
 (0)