-
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (29 loc) · 1.17 KB
/
crowdin-sync.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
name: Scheduled Crowdin Sync
on:
schedule:
- cron: '0 17 * * */6' # Sync at 17:00 every Saturday - https://crontab.guru/#0_17_*_*_*/6
workflow_dispatch: # For manually running the action
jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Crowdin Action
uses: crowdin/github-action@v1
with:
upload_sources: false
download_translations: true
skip_untranslated_strings: true
localization_branch_name: i18n
create_pull_request: true
pull_request_title: 'New Translations'
pull_request_body: 'New Translations via Crowdin GH Action'
pull_request_base_branch_name: 'master'
pull_request_assignees: 'StardustD2'
source: locale/en.json
translation: locale/%two_letters_code%.json
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}