Skip to content

Crowdin

Crowdin #40

Workflow file for this run

name: Crowdin
on:
workflow_run:
workflows:
- Continuous Integration
branches:
- master
types:
- completed
jobs:
synchronize:
name: Synchronize sources and translations
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 14
- name: Restore Node.js modules
uses: actions/cache@v3.3.1
with:
path: node_modules
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}
- name: Extract messages
run: yarn intl:extract
- name: Synchronize
uses: crowdin/github-action@v1.12.0
with:
upload_translations: true
download_translations: true
localization_branch_name: l10n_crowdin_action
create_pull_request: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_TOKEN }}