We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e648406 commit 3fdca48Copy full SHA for 3fdca48
1 file changed
.github/workflows/sync-translations.yml
@@ -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/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
0 commit comments