Skip to content

Commit 3bd4a0d

Browse files
Update update-api-docs.yml
1 parent c58ea7f commit 3bd4a0d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,21 @@ jobs:
2323

2424
steps:
2525
- name: ⬇️ Checkout docs-v2 (This) Repository
26+
# This is where the output commit will happen, so we keep fetch-depth: 0
2627
uses: actions/checkout@v4
2728
with:
2829
path: docs-v2
2930
fetch-depth: 0
3031

3132
- name: ⬇️ Checkout api2 Source Repository
33+
# Check out the external API repo into a separate directory
3234
uses: actions/checkout@v4
3335
with:
34-
repository: atko-cic/api2 # <<< VERIFY THIS REPO PATH
36+
repository: atko-cic/api2
3537
path: api2
38+
token: ${{ secrets.API_READ_TOKEN }}
39+
# Explicitly setting a low depth for faster checkout and to avoid auth conflicts
40+
fetch-depth: 1
3641

3742
- name: 🛠️ Setup Node.js
3843
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)