Skip to content

Commit 95ee08b

Browse files
committed
ci: fix translation ci again
1 parent ff6d771 commit 95ee08b

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/translation-ai-check.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: AI Translation Check
22

33
on:
4+
# pull_request_target:
5+
# types:
6+
# - opened
47
issue_comment:
58
types:
69
- created
@@ -13,8 +16,8 @@ permissions:
1316
jobs:
1417
review:
1518
name: Review Translation
19+
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' ) }}
1620
runs-on: ubuntu-latest
17-
1821
env:
1922
OPENAI_MODEL: gpt-5-mini
2023
SYSTEM_PROMPT: |
@@ -24,6 +27,20 @@ jobs:
2427
AI_PROMPT: Translation patch below.
2528

2629
steps:
30+
- name: Checkout source code
31+
uses: actions/checkout@v5
32+
33+
- uses: dorny/paths-filter@v3
34+
id: changes
35+
with:
36+
filters: |
37+
i18n:
38+
- 'src/i18n/**'
39+
40+
- name: Stop if i18n not changed
41+
if: steps.changes.outputs.i18n != 'true'
42+
run: echo "No i18n changes in this PR; skipping." && exit 0
43+
2744
- name: Determine PR number
2845
id: pr
2946
run: |

0 commit comments

Comments
 (0)