Skip to content

Scheduled Crowdin Sync #36

Scheduled Crowdin Sync

Scheduled Crowdin Sync #36

Workflow file for this run

name: Scheduled Crowdin Sync
on:
schedule:
- cron: '0 */12 * * *' # Sync every 12 hours - https://crontab.guru/#0_*/12_*_*_*
workflow_dispatch: # For manually running the action
jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Crowdin Action
uses: crowdin/github-action@v1
with:
upload_sources: false
download_translations: true
skip_untranslated_strings: true
localization_branch_name: i18n
create_pull_request: true
pull_request_title: 'New Translations'
pull_request_body: 'New Translations via Crowdin GH Action'
pull_request_base_branch_name: 'master'
pull_request_assignees: 'StardustD2'
source: locale/en.json
translation: locale/%two_letters_code%.json
project_id: ${{ secrets.CROWDIN_PROJECT_ID }}
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}