Sync Translations #85
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |