Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/sync-translations-fa.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Sync Translations — Farsi
# On merged PR, translate changed lectures into the Farsi target repo.
# Comment \translate-resync on a merged PR to re-trigger sync.
name: Sync Translations (Farsi)

on:
Expand All @@ -8,18 +9,22 @@ on:
paths:
- 'lectures/**/*.md'
- 'lectures/_toc.yml'
issue_comment:
types: [created]

jobs:
sync:
if: github.event.pull_request.merged == true
if: >
(github.event_name == 'pull_request' && github.event.pull_request.merged == true) ||
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '\translate-resync'))
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
with:
fetch-depth: 2

- uses: QuantEcon/action-translation@v0.11.2
- uses: QuantEcon/action-translation@v0.12.0
with:
mode: sync
target-repo: QuantEcon/lecture-python-programming.fa
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/sync-translations-zh-cn.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Sync Translations — Simplified Chinese
# On merged PR, translate changed lectures into the zh-cn target repo.
# Comment \translate-resync on a merged PR to re-trigger sync.
name: Sync Translations (Simplified Chinese)

on:
Expand All @@ -8,18 +9,22 @@ on:
paths:
- 'lectures/**/*.md'
- 'lectures/_toc.yml'
issue_comment:
types: [created]

jobs:
sync:
if: github.event.pull_request.merged == true
if: >
(github.event_name == 'pull_request' && github.event.pull_request.merged == true) ||
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '\translate-resync'))
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v6
with:
fetch-depth: 2

- uses: QuantEcon/action-translation@v0.11.2
- uses: QuantEcon/action-translation@v0.12.0
with:
mode: sync
target-repo: QuantEcon/lecture-python-programming.zh-cn
Expand Down
Loading