Skip to content

TST: sync translation (one-off) #1

TST: sync translation (one-off)

TST: sync translation (one-off) #1

name: Sync Translations
on:
pull_request:
types: [closed]
paths:
- 'lectures/**/*.md'
jobs:
sync-to-chinese:
# Only run when PR is merged (not just closed)
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Sync to Chinese Repository
uses: quantecon/[email protected]
with:
target-repo: 'quantecon/lecture-python.zh-cn'
target-language: 'zh-cn'
docs-folder: 'lectures/'
source-language: 'en'
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
github-token: ${{ secrets.QUANTECON_SERVICES_PAT }}
pr-labels: 'translation-sync,automated,needs-review'
pr-reviewers: 'mmcky' # Add your GitHub username