Skip to content

Commit acae6d4

Browse files
committed
🌐 Create crowdin.yml
1 parent ad8d1dc commit acae6d4

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/crowdin.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Crowdin Action
2+
3+
on:
4+
push:
5+
branches: [ 2.x ]
6+
7+
jobs:
8+
synchronize-with-crowdin:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
15+
- name: crowdin action
16+
uses: crowdin/github-action@v2
17+
with:
18+
upload_sources: true
19+
upload_translations: false
20+
download_translations: true
21+
create_pull_request: true
22+
import_eq_suggestions: true
23+
crowdin_branch_name: 2.x
24+
env:
25+
# A classic GitHub Personal Access Token with the 'repo' scope selected (the user should have write access to the repository).
26+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
27+
28+
# A numeric ID, found at https://crowdin.com/project/<projectName>/tools/api
29+
CROWDIN_PROJECT_ID: ${{ vars.CROWDIN_PROJECT_ID }}
30+
31+
# Visit https://crowdin.com/settings#api-key to create this token
32+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

0 commit comments

Comments
 (0)