Skip to content

Commit e123df6

Browse files
authored
Add zh-cn sync workflow and bump fa workflow to v0.11.1 (#487)
1 parent bdd8684 commit e123df6

File tree

2 files changed

+31
-1
lines changed

2 files changed

+31
-1
lines changed

.github/workflows/sync-translations-fa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
fetch-depth: 2
2121

22-
- uses: QuantEcon/action-translation@v0.11.0
22+
- uses: QuantEcon/action-translation@v0.11.1
2323
with:
2424
mode: sync
2525
target-repo: QuantEcon/lecture-python-programming.fa
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Sync Translations — Simplified Chinese
2+
# On merged PR, translate changed lectures into the zh-cn target repo.
3+
name: Sync Translations (Simplified Chinese)
4+
5+
on:
6+
pull_request:
7+
types: [closed]
8+
paths:
9+
- 'lectures/**/*.md'
10+
- 'lectures/_toc.yml'
11+
12+
jobs:
13+
sync:
14+
if: github.event.pull_request.merged == true
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- uses: actions/checkout@v6
19+
with:
20+
fetch-depth: 2
21+
22+
- uses: QuantEcon/action-translation@v0.11.1
23+
with:
24+
mode: sync
25+
target-repo: QuantEcon/lecture-python-programming.zh-cn
26+
target-language: zh-cn
27+
source-language: en
28+
docs-folder: lectures
29+
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
30+
github-token: ${{ secrets.QUANTECON_SERVICES_PAT }}

0 commit comments

Comments
 (0)