diff options
| author | Vaxry <vaxry@vaxry.net> | 2025-11-17 17:53:34 +0000 |
|---|---|---|
| committer | Vaxry <vaxry@vaxry.net> | 2025-11-17 17:53:34 +0000 |
| commit | 95ee08b3403b90e2930d46425cada1d280f3524e (patch) | |
| tree | fffbeb6a3999ba0c9369b1fe47411a4525670379 /.github | |
| parent | ff6d771be04a9e2c5093efd0e08d0e8108b1a82e (diff) | |
ci: fix translation ci again
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/translation-ai-check.yml | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/.github/workflows/translation-ai-check.yml b/.github/workflows/translation-ai-check.yml index 96c93751..d6a62a60 100644 --- a/.github/workflows/translation-ai-check.yml +++ b/.github/workflows/translation-ai-check.yml @@ -1,6 +1,9 @@ name: AI Translation Check on: + # pull_request_target: + # types: + # - opened issue_comment: types: - created @@ -13,8 +16,8 @@ permissions: jobs: review: name: Review Translation + if: ${{ github.event_name == 'pull_request_target' || (github.event_name == 'issue_comment' && github.event.action == 'created' && github.event.issue.pull_request != null && github.event.comment.user.login == 'vaxerski' && github.event.comment.body == 'ai, please recheck' ) }} runs-on: ubuntu-latest - env: OPENAI_MODEL: gpt-5-mini SYSTEM_PROMPT: | @@ -24,6 +27,20 @@ jobs: AI_PROMPT: Translation patch below. steps: + - name: Checkout source code + uses: actions/checkout@v5 + + - uses: dorny/paths-filter@v3 + id: changes + with: + filters: | + i18n: + - 'src/i18n/**' + + - name: Stop if i18n not changed + if: steps.changes.outputs.i18n != 'true' + run: echo "No i18n changes in this PR; skipping." && exit 0 + - name: Determine PR number id: pr run: | |
