File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Sync Translations
2+
3+ on :
4+ pull_request :
5+ types : [closed]
6+ paths :
7+ - ' lectures/**/*.md'
8+
9+ jobs :
10+ sync-to-chinese :
11+ # Only run when PR is merged (not just closed)
12+ if : github.event.pull_request.merged == true
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Sync to Chinese Repository
17+ uses : quantecon/action-translation-sync@v0.1
18+ with :
19+ target-repo : ' quantecon/lecture-python.zh-cn'
20+ target-language : ' zh-cn'
21+ docs-folder : ' lectures/'
22+ source-language : ' en'
23+ anthropic-api-key : ${{ secrets.ANTHROPIC_API_KEY }}
24+ github-token : ${{ secrets.QUANTECON_SERVICES_PAT }}
25+ pr-labels : ' translation-sync,automated,needs-review'
26+ pr-reviewers : ' mmcky' # Add your GitHub username
You can’t perform that action at this time.
0 commit comments