Skip to content

Commit 57a3411

Browse files
authored
Merge pull request #126 from togethercomputer/test-sync-action-2
add token for docs repo pr
2 parents 907d686 + 2d36320 commit 57a3411

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/sync-openapi-spec-to-docs.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
push:
88
branches: [main]
99
paths:
10-
- 'openapi.yaml'
10+
- "openapi.yaml"
1111

1212
jobs:
1313
sync:
@@ -23,7 +23,7 @@ jobs:
2323
echo "${{ secrets.DOCS_DEPLOY_KEY }}" > ~/.ssh/id_ed25519
2424
chmod 600 ~/.ssh/id_ed25519
2525
ssh-keyscan github.com >> ~/.ssh/known_hosts
26-
26+
2727
- name: Install GitHub CLI
2828
run: sudo apt-get install -y gh
2929

@@ -34,7 +34,7 @@ jobs:
3434
3535
- name: Commit and push update
3636
env:
37-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
GH_TOKEN: ${{ secrets.DOCS_REPO_PAT }}
3838
run: |
3939
cd mintlify-docs
4040
git config user.name "github-actions[bot]"
@@ -56,4 +56,5 @@ jobs:
5656
--title "Sync OpenAPI spec" \
5757
--body "This PR syncs openapi.yaml from openapi repo." \
5858
--base main \
59-
--head "$BRANCH_NAME"
59+
--head "$BRANCH_NAME"
60+

0 commit comments

Comments
 (0)