-
Notifications
You must be signed in to change notification settings - Fork 292
59 lines (50 loc) · 1.57 KB
/
sync_translations.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
50
51
52
53
54
55
56
57
58
59
name: Sync translations
on:
push:
branches: [dev]
schedule:
- cron: '0 8 * * *'
workflow_dispatch:
concurrency:
group: translations-${{ github.ref }}
cancel-in-progress: true
jobs:
sync_translations:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18.16.x
cache: 'yarn'
- name: Authenticate git clone
env:
GH_TOKEN: ${{secrets.OTTO_THE_BOT_GH_TOKEN}}
run: echo -e "machine github.com\n login ${GH_TOKEN}" > ~/.netrc
- name: Install JS dependencies
run: yarn --immutable
- name: Merge translations
run: yarn translate:merge
- name: Download translations
uses: crowdin/[email protected]
env:
GITHUB_TOKEN: ${{secrets.OTTO_THE_BOT_GH_TOKEN}}
CROWDIN_PROJECT_ID: 342359
INPUT_DEBUG_MODE: false
with:
upload_sources: true
upload_translations: false
github_user_name: otto-the-bot
github_user_email: [email protected]
download_translations: true
push_translations: true
create_pull_request: true
localization_branch_name: 'translations'
pull_request_title: 'chore: Update translations'
commit_message: 'chore: Update translations'
token: ${{secrets.WEBTEAM_CROWDIN_TOKEN}}
source: '/src/i18n/en-US.json'
translation: '/src/i18n/%locale%.json'
base_path: '.'