Sync all to ParaTranz #13
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
name: Sync all to ParaTranz | |
on: | |
workflow_call: | |
inputs: | |
target_lang: | |
description: "Target language to run" | |
required: true | |
type: string | |
workflow_dispatch: | |
inputs: | |
target_lang: | |
description: "Target language to run" | |
required: true | |
type: choice | |
options: | |
- zh_CN | |
- ja_JP | |
- ko_KR | |
- pt_BR | |
- fr_FR | |
- es_ES | |
- tr_TR | |
- de_DE | |
- pl_PL | |
env: | |
PARATRANZ_TOKEN: ${{ secrets.PARATRANZ_TOKEN }} | |
jobs: | |
sync-all-to-paratranz: | |
name: ${{ inputs.target_lang }} Sync all to ParaTranz | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: master | |
- name: Get project ID | |
id: get-project-id | |
uses: ./.github/actions/get-project-id | |
with: | |
target_lang: ${{ inputs.target_lang }} | |
- name: Ensure Dependencies | |
uses: ./.github/actions/ensure-dependencies | |
- name: Sync to ParaTranz | |
run: >- | |
poetry run python main.py action sync-all-to-paratranz | |
--subdirectory='nightly-history' | |
env: | |
PARATRANZ_PROJECT_ID: ${{ steps.get-project-id.outputs.project_id }} | |
TARGET_LANG: ${{ inputs.target_lang }} |