Skip to content

Commit 0a9cd0d

Browse files
authored
Create crowdin.yml
1 parent 526072c commit 0a9cd0d

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

.github/workflows/crowdin.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Crowdin Sync
2+
3+
on:
4+
schedule:
5+
- cron: 0 0 * * 0
6+
push:
7+
paths:
8+
- 'app/src/main/res/values/strings.xml'
9+
workflow_dispatch:
10+
11+
jobs:
12+
synchronize-with-crowdin:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: crowdin action
22+
uses: crowdin/github-action@v2
23+
with:
24+
upload_sources: true
25+
upload_translations: false
26+
download_translations: true
27+
localization_branch_name: l10n_crowdin_translations
28+
create_pull_request: true
29+
pull_request_title: 'New Crowdin Translations'
30+
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
31+
pull_request_base_branch_name: 'develop'
32+
env:
33+
# A classic GitHub Personal Access Token with the 'repo' scope selected (the user should have write access to the repository).
34+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
35+
36+
# A numeric ID, found at https://crowdin.com/project/<projectName>/tools/api
37+
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
38+
39+
# Visit https://crowdin.com/settings#api-key to create this token
40+
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}

0 commit comments

Comments
 (0)