-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.18 KB
/
crowdin-download.yml
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
## Scheduled syncronizes translations from Crowdin
name: Daily Sync Crowdin (schedule)
on:
schedule:
- cron: '0 22 * * *' # Everyday at 10 PM UTC
workflow_dispatch:
jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: 'test'
- name: Download translations
uses: crowdin/github-action@1.5.2
with:
config: crowdin.yml
upload_sources: false
upload_translations: false
download_translations: true
push_translations: true
commit_message: '[automated] Daily sync of translations from Crowdin'
localization_branch_name: 'test-i18n'
create_pull_request: true
crowdin_branch_name: 'main'
pull_request_base_branch_name: 'test'
pull_request_title: 'Daily sync of translations from Crowdin'
pull_request_body: 'Merge this to add changes from Crowdin to this repo.'
pull_request_labels: 'crowdin'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}