Skip to content

Sync Translations

Sync Translations #103

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"