Skip to content

Commit f220dca

Browse files
authored
fix(ci): use Github Bot for Crowdin
Signed-off-by: Aviv Keller <me@aviv.sh>
1 parent c6b6928 commit f220dca

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/translations-sync.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ concurrency:
1616
cancel-in-progress: true
1717

1818
permissions:
19-
# These permissions required by `crowdin/github-action`
20-
contents: write
21-
pull-requests: write
19+
contents: read
2220

2321
jobs:
2422
synchronize-with-crowdin:
@@ -51,7 +49,7 @@ jobs:
5149
pull_request_body: 'New Crowdin translations from the [Node.js Crowdin project](https://crowdin.com/project/nodejs-web)'
5250
commit_message: 'chore: synced translations from crowdin'
5351
env:
54-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
5553
# A numeric ID, found at https://crowdin.com/project/nodejs-web/tools/api
5654
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
5755
# Created from https://crowdin.com/settings#api-key logged in using nodejs-crowdin-bot
@@ -76,6 +74,7 @@ jobs:
7674
with:
7775
# Use the number from the output of crowdin/github-action
7876
ref: refs/pull/${{ needs.synchronize-with-crowdin.outputs.pull_request_number }}/head
77+
token: ${{ secrets.GH_USER_TOKEN }}
7978

8079
- name: Restore Lint Cache
8180
uses: actions/cache/restore@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3

0 commit comments

Comments
 (0)