forked from binary-com/deriv-com
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (29 loc) · 1.02 KB
/
translation-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
name: Sync Master Translation
permissions:
actions: write
checks: write
contents: write
deployments: write
pull-requests: write
statuses: write
on:
push:
branches:
- 'master*'
jobs:
sync-translation:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
- name: Setup Node
uses: actions/[email protected]
with:
node-version: '16.x'
- run: npm i -g @crowdin/[email protected]
- name: Fetch Crowdin Master Translation ⬇️
run:
crowdin download -b master -T ${{ secrets.CROWDIN_API_KEY }} && crowdin download -b master -l zh-CN -T ${{ secrets.CROWDIN_API_KEY }}
- name: Push New Strings & Translations ⬆️
run:
crowdin upload sources -b master -T ${{ secrets.CROWDIN_API_KEY }}; crowdin upload translations -b master -T ${{ secrets.CROWDIN_API_KEY }}