Setup action-translation sync infrastructure #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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] | |
| jobs: | |
| review: | |
| if: contains(github.event.pull_request.labels.*.name, 'action-translation') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| - uses: QuantEcon/action-translation@v0.10.0 | |
| 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 }} |