mirror of
https://github.com/hyprwm/Hyprland
synced 2025-12-29 13:50:19 +01:00
ci: fix translation ci again
This commit is contained in:
parent
ff6d771be0
commit
95ee08b340
1 changed files with 18 additions and 1 deletions
19
.github/workflows/translation-ai-check.yml
vendored
19
.github/workflows/translation-ai-check.yml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue