-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (38 loc) · 1.29 KB
/
crowdin.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
38
39
40
41
42
43
44
45
46
47
48
49
# Workflow that syncronizes translations from Crowdin
name: Crowdin
on:
# Check for updates every day
schedule:
# Everyday at 01:12
- cron: '12 1 * * *'
# Sync when a commit is done on the reference branches
push:
branches: ["lts-2021"]
paths:
- 'nuxeo-coldstorage-web/i18n/messages.json'
jobs:
crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Crowdin Action
uses: crowdin/[email protected]
with:
# Tokens
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
# Load external configuration file (to support translation rename)
config: crowdin-conf.yml
# Upload sources for translation
upload_sources: true
# Auto-approve reference sentences we are pushing (english)
auto_approve_imported: true
# Name of the branch where to merge the translations
localization_branch_name: crowdin-translations-update
create_pull_request: true
pull_request_reviewers: 'manonlumeau'
# Automatically download all the new translations
download_translations: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}