Skip to content

Commit 30e68b6

Browse files
committed
feat: use PAT_TOKEN
1 parent 3dd81fa commit 30e68b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.github/workflows/sync-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ jobs:
207207
if: steps.check_changes.outputs.has_changes == 'true'
208208
uses: peter-evans/create-pull-request@v5
209209
with:
210-
token: ${{ secrets.GITHUB_TOKEN }}
210+
token: ${{ secrets.PAT_TOKEN }} # Use PAT instead of GITHUB_TOKEN
211211
commit-message: "docs: update nextjs documentation"
212212
title: "docs: update nextjs documentation"
213213
body: |

.github/workflows/translate-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
# Required inputs
5858
api_key: ${{ secrets.OPENAI_API_KEY }}
5959
# Optional inputs with their default values shown
60-
github_token: ${{ secrets.GITHUB_TOKEN }}
60+
github_token: ${{ secrets.PAT_TOKEN }} # Use PAT instead of GITHUB_TOKEN
6161
custom_arguments: ${{ github.event.inputs.custom_arguments }}
6262
pr_branch: ${{ github.event.inputs.pr_branch || 'docs/update-translations' }}
6363
# translation_command: 'pnpm run translate'

0 commit comments

Comments
 (0)