-
Notifications
You must be signed in to change notification settings - Fork 7
54 lines (50 loc) · 1.34 KB
/
conditional-sync-to-paratranz.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Conditional sync 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
- ru_RU
env:
PARATRANZ_TOKEN: ${{ secrets.PARATRANZ_TOKEN }}
jobs:
conditional-sync-to-paratranz:
name: ${{ inputs.target_lang }} Conditional sync to ParaTranz
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
ref: master
fetch-depth: 2
- 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 conditional-sync-to-paratranz
--subdirectory='nightly-history'
env:
PARATRANZ_PROJECT_ID: ${{ steps.get-project-id.outputs.project_id }}
TARGET_LANG: ${{ inputs.target_lang }}