TST: sync translation (one-off) #1
Workflow file for this run
This file contains hidden or 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 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 |