Skip to content

Merge pull request #3704 from kishanprmr/cli/create-trigger #2

Merge pull request #3704 from kishanprmr/cli/create-trigger

Merge pull request #3704 from kishanprmr/cli/create-trigger #2

Workflow file for this run

name: Crowdin Action
on:
push:
branches: [ main ]
jobs:
synchronize-with-crowdin:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: npm-${{ hashFiles('package-lock.json') }}
restore-keys: npm-
- name: Install dependencies
run: npm ci --ignore-scripts
- name: build packages
run: npx nx run-many --target=extract-i18n --projects=ui-core
- name: remove ee modules from xlf files
run: npx ts-node tools/scripts/xlf/remove-ee-modules-from-xlf-files.ts
- name: crowdin action
uses: crowdin/github-action@v1
with:
upload_sources: true
upload_translations: false
download_translations: true
localization_branch_name: l10n_crowdin_translations
create_pull_request: true
pull_request_title: 'feat(crowdin): New Translations'
pull_request_body: 'New Crowdin translations by [Crowdin GH Action](https://github.com/crowdin/github-action)'
pull_request_base_branch_name: 'main'
env:
GITHUB_TOKEN: ${{ secrets.GH_ABUABOUD_TOKEN }}
CROWDIN_PROJECT_ID: ${{ secrets.CROWDIN_PROJECT_ID }}
CROWDIN_PERSONAL_TOKEN: ${{ secrets.CROWDIN_PERSONAL_TOKEN }}