-
-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (24 loc) · 856 Bytes
/
review-translations.yml
File metadata and controls
28 lines (24 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Review Translations — Quality check on translation PRs
# When a PR is opened/updated that carries the 'action-translation' label,
# this workflow runs a quality review and posts a comment.
name: Review Translations
on:
pull_request:
types: [opened, synchronize, labeled, reopened]
jobs:
review:
if: contains(github.event.pull_request.labels.*.name, 'action-translation')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 2
- uses: QuantEcon/action-translation@v0.13.1
with:
mode: review
source-repo: QuantEcon/lecture-python-programming
source-language: en
target-language: fa
docs-folder: lectures
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
github-token: ${{ secrets.GITHUB_TOKEN }}