forked from ton-community/ton-docs
-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (48 loc) · 1.53 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
name: Sync Translations
on:
schedule:
- cron: '0 0 * * *' # every day at 00:00.
workflow_dispatch: # on button click
jobs:
sync-branches:
runs-on: ubuntu-latest
name: Syncing branches
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: 16
- name: Opening pull request to ja_preview
id: pull_ja
uses: sansx/[email protected]
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
FROM_BRANCH: "l10n_main"
TO_BRANCH: "ja_preview"
PULL_REQUEST_AUTO_MERGE_METHOD: "merge"
- name: Opening pull request to ko_preview
id: pull_ko
uses: sansx/[email protected]
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
FROM_BRANCH: "l10n_main"
TO_BRANCH: "ko_preview"
PULL_REQUEST_AUTO_MERGE_METHOD: "merge"
- name: Opening pull request to mandarin_preview
id: pull_mandarin
uses: sansx/[email protected]
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
FROM_BRANCH: "l10n_main"
TO_BRANCH: "mandarin_preview"
PULL_REQUEST_AUTO_MERGE_METHOD: "merge"
- name: Opening pull request to ru_preview
id: pull_ru
uses: sansx/[email protected]
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
FROM_BRANCH: "l10n_main"
TO_BRANCH: "ru_preview"
PULL_REQUEST_AUTO_MERGE_METHOD: "merge"