-
Notifications
You must be signed in to change notification settings - Fork 75
60 lines (53 loc) · 1.99 KB
/
crowdin-actions.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Synchronise with Crowdin
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
jobs:
synchronise-with-crowdin:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Upload or update source files to Crowdin
uses: crowdin/[email protected]
with:
upload_sources: true
- name: Download German translations
uses: crowdin/[email protected]
with:
upload_sources: false
download_translations: true
download_language: 'de'
skip_untranslated_files: true
export_only_approved: true
push_translations: true
commit_message: 'Update German Crowdin translations by Github Action'
localization_branch_name: translation-de
create_pull_request: true
pull_request_title: 'Update German language translations'
pull_request_body: 'This pull request will add/update German language files from Crowdin.'
pull_request_labels: 'internationalization'
pull_request_base_branch_name: develop
config: crowdin.yaml
- name: Download Spanish translations
uses: crowdin/[email protected]
with:
upload_sources: false
download_translations: true
download_language: 'es-ES'
skip_untranslated_files: true
export_only_approved: true
push_translations: true
commit_message: 'Update Spanish Crowdin translations by Github Action'
localization_branch_name: translation-es
create_pull_request: true
pull_request_title: 'Update Spanish language translations'
pull_request_body: 'This pull request will add/update Spanish language files from Crowdin.'
pull_request_labels: 'internationalization'
pull_request_base_branch_name: develop
config: crowdin.yaml