Skip to content

Crowdin Action

Crowdin Action #6054

Workflow file for this run

name: Crowdin Action
on:
push:
branches:
- master
schedule:
- cron: "0 */12 * * *" # run every 12 hours
jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Remove translations
run: |
find locales/ -type f ! -name 'en*' | grep -v /en/ | xargs rm
- name: crowdin action
uses: crowdin/[email protected]
with:
upload_sources: true
upload_sources_args: '--verbose'
crowdin_branch_name: master
# This is the name of the git branch that Crowdin will create when opening a pull request.
# This branch does NOT need to be manually created. It will be created automatically by the action.
localization_branch_name: l10n_crowdin_action
download_translations: true
create_pull_request: true
commit_message: 'chore(locales): crowdin update'
pull_request_title: 'chore(locales): crowdin update'
pull_request_base_branch_name: master
# dry run to test
# dryrun_action: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}