Skip to content

Commit f04e47f

Browse files
committed
[add] Crowdin GitHub action
1 parent f2da933 commit f04e47f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

Diff for: .github/workflows/main.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Crowdin Action
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
synchronize-with-crowdin:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
16+
- name: crowdin action
17+
uses: crowdin/github-action@v1
18+
with:
19+
upload_sources: true
20+
upload_translations: true
21+
download_translations: true
22+
localization_branch_name: l10n_master
23+
create_pull_request: true
24+
pull_request_title: "New Crowdin Translations"
25+
pull_request_body: "New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)"
26+
pull_request_base_branch_name: "master"
27+
env:
28+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
29+
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
30+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

0 commit comments

Comments
 (0)