Scheduled Crowdin Sync #96
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: Scheduled Crowdin Sync | |
on: | |
schedule: | |
- cron: '0 17 * * */6' # Sync at 17:00 every Saturday - https://crontab.guru/#0_17_*_*_*/6 | |
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 }} |