Skip to content

Commit 2e78157

Browse files
mmckyclaude
andcommitted
ci: sync translations only for PRs merged into main
The sync workflows triggered on `pull_request: types: [closed]` with no `branches:` filter, so a PR merged into any branch fired them. A merge into the long-lived `jb2` branch opened translation PRs in every target repo for content the published edition does not carry. Mirrors the template change in QuantEcon/action-translation#308 (v0.28.1). Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
1 parent 5e574c1 commit 2e78157

3 files changed

Lines changed: 12 additions & 0 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ name: Sync Translations (Farsi)
66
on:
77
pull_request:
88
types: [closed]
9+
# Only merges into main sync. Without this, a PR merged into any branch
10+
# (a long-lived migration branch, say) opens translation PRs for content
11+
# the published edition does not carry.
12+
branches: [main]
913
paths:
1014
- 'lectures/**/*.md'
1115
- 'lectures/_toc.yml'

‎.github/workflows/sync-translations-fr.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ name: Sync Translations (French)
66
on:
77
pull_request:
88
types: [closed]
9+
# Only merges into main sync. Without this, a PR merged into any branch
10+
# (a long-lived migration branch, say) opens translation PRs for content
11+
# the published edition does not carry.
12+
branches: [main]
913
paths:
1014
- 'lectures/**/*.md'
1115
- 'lectures/_toc.yml'

‎.github/workflows/sync-translations-zh-cn.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ name: Sync Translations (Simplified Chinese)
66
on:
77
pull_request:
88
types: [closed]
9+
# Only merges into main sync. Without this, a PR merged into any branch
10+
# (a long-lived migration branch, say) opens translation PRs for content
11+
# the published edition does not carry.
12+
branches: [main]
913
paths:
1014
- 'lectures/**/*.md'
1115
- 'lectures/_toc.yml'

0 commit comments

Comments
 (0)