Skip to content

Commit dfd729d

Browse files
committed
feat: add crowdin to github flow
1 parent aa9ea06 commit dfd729d

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Crowdin To GitHub
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '15 * * * *' # sync every hour
7+
8+
jobs:
9+
synchronize-with-crowdin:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Sync Crowdin to Github
17+
uses: crowdin/[email protected]
18+
with:
19+
upload_sources: false
20+
upload_translations: false
21+
download_translations: true
22+
localization_branch_name: i18n_crowdin
23+
create_pull_request: true
24+
push_sources: false
25+
pull_request_title: 'New Crowdin Translations'
26+
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
27+
pull_request_base_branch_name: 'main'
28+
env:
29+
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
30+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
31+
GITHUB_TOKEN: ${{ github.token }}

0 commit comments

Comments
 (0)