Skip to content

Commit 0c90abb

Browse files
authored
Merge pull request #583 from Swilder-M/fix-ci-token
chore(ci): fix ci token
2 parents 19333e2 + e80585f commit 0c90abb

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/deploy_docs.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,20 @@ jobs:
2222
fetch-depth: 0
2323
path: docs-files
2424

25+
- name: Generate GitHub App token
26+
id: app-token
27+
uses: actions/create-github-app-token@df432ceedc7162793a195dd1713ff69aefc7379e # v2.0.6
28+
with:
29+
app-id: ${{ vars.AUTH_APP_ID }}
30+
private-key: ${{ secrets.AUTH_APP_PRIVATE_KEY }}
31+
owner: ${{ github.repository_owner }}
32+
2533
- name: clone frontend
2634
uses: actions/checkout@main
2735
with:
2836
repository: 'emqx/docs-emqx-com-frontend'
2937
ref: next
30-
token: ${{ secrets.CI_GIT_TOKEN }}
38+
token: ${{ steps.app-token.outputs.token }}
3139
path: frontend
3240

3341
- name: use node.js
@@ -126,4 +134,4 @@ jobs:
126134
API_KEY: ${{ secrets.ALGOLIA_API_KEY_NEXT }}
127135
with:
128136
docs_type: ${{ env.DOCS_TYPE }}
129-
docs_version: ${{ env.VERSION }}
137+
docs_version: ${{ env.VERSION }}

0 commit comments

Comments
 (0)