Skip to content

Commit 38a8a5d

Browse files
committed
chore: add wip action
1 parent cb43b64 commit 38a8a5d

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Crowdin Action
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
synchronize-with-crowdin:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Harden Runner
13+
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
14+
with:
15+
egress-policy: audit
16+
17+
- name: Checkout
18+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
19+
20+
- name: crowdin action
21+
uses: crowdin/github-action@2d540f18b0a416b1fbf2ee5be35841bd380fc1da #v2.3.0
22+
with:
23+
upload_sources: true
24+
upload_translations: false
25+
download_translations: true
26+
localization_branch_name: chore/crowdin
27+
create_pull_request: true
28+
pull_request_title: 'New Crowdin Translations'
29+
pull_request_body: 'New Crowdin translations from the [Node.js Crowdin project](https://crowdin.com/project/nodejs-web)'
30+
pull_request_base_branch_name: 'main'
31+
env:
32+
# A classic GitHub Personal Access Token with the 'repo' scope selected (the user should have write access to the repository).
33+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
34+
35+
# A numeric ID, found at https://crowdin.com/project/nodejs-web/tools/api
36+
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
37+
38+
# Visit https://crowdin.com/settings#api-key to create this token
39+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

0 commit comments

Comments
 (0)