Sync Crowdin Translations #77
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
# Retrieves non-English translations from Crowdin and creates a PR with new changes | |
name: Sync Crowdin Translations | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 0 0 * * 0 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js LTS | |
uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm ci | |
- name: Crowdin Sync | |
run: npm run crowdin-sync | |
env: | |
# appium-desktop | |
CROWDIN_PROJECT_ID: 346705 | |
CROWDIN_TOKEN: ${{ secrets.CROWDIN_TOKEN }} | |
- name: Create Pull Request | |
uses: peter-evans/[email protected] | |
with: | |
token: ${{ github.token }} | |
commit-message: 'chore: Update translations' | |
title: 'chore: Update translations' | |
labels: i18n | |
branch: crowdin-sync-${{ github.run_id }} | |
body: 'Update Crowdin Translations: https://crowdin.com/project/appium-desktop' |