Skip to content

Sync Translations

Sync Translations #84

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/sync-branches@v1.0.1
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/sync-branches@v1.0.1
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/sync-branches@v1.0.1
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
FROM_BRANCH: "l10n_main"
TO_BRANCH: "mandarin_preview"
PULL_REQUEST_AUTO_MERGE_METHOD: "merge"