35 lines
707 B
YAML
35 lines
707 B
YAML
name: Crowdin
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
# manual trigger
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
synchronize-with-crowdin:
|
|
name: Synchronize with Crowdin
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Synchronize
|
|
uses: crowdin/github-action@1.1.0
|
|
with:
|
|
upload_translations: true
|
|
download_translations: true
|
|
project_id: 458284
|
|
token: ${{ secrets.CROWDIN_PERSONAL_TOKEN_SECRET }}
|
|
source: "/src/locales/en.po"
|
|
translation: "/src/locales/%locale%.po"
|
|
env:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|