-
Notifications
You must be signed in to change notification settings - Fork 292
49 lines (41 loc) · 1.39 KB
/
pull_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
name: Pull translations from crowdin
on:
workflow_dispatch:
jobs:
sync_translations:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{github.token}}
- name: Yarn cache
uses: c-hive/gha-yarn-cache@v2
- 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: Sync translations
uses: crowdin/[email protected]
env:
GITHUB_TOKEN: ${{secrets.OTTO_THE_BOT_GH_TOKEN}}
GITHUB_ACTOR: otto-the-bot
CROWDIN_PROJECT_ID: 342359
INPUT_DEBUG_MODE: true
with:
upload_sources: false
upload_translations: false
download_translations: true
push_translations: true
create_pull_request: true
localization_branch_name: 'pull_translations'
pull_request_title: 'chore: Pull translations'
commit_message: 'chore: Pull translations'
token: ${{secrets.WEBTEAM_CROWDIN_TOKEN}}
source: '/src/i18n/en-US.json'
translation: '/src/i18n/%locale%.json'
base_path: '.'