Skip to content

Commit 3fdca48

Browse files
authored
TST: setup action-translation-sync for testing (#648)
1 parent e648406 commit 3fdca48

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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/[email protected]
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

0 commit comments

Comments
 (0)