-
Notifications
You must be signed in to change notification settings - Fork 31
40 lines (38 loc) · 1.07 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
name: Crowdin
on:
workflow_run:
workflows:
- Continuous Integration
branches:
- master
types:
- completed
jobs:
synchronize:
name: Synchronize sources and translations
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Restore Node.js modules
uses: actions/[email protected]
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Extract messages
run: yarn intl:extract
- name: Synchronize
uses: crowdin/[email protected]
with:
upload_translations: true
download_translations: true
localization_branch_name: l10n_crowdin_action
create_pull_request: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_TOKEN }}