-
Notifications
You must be signed in to change notification settings - Fork 88
52 lines (50 loc) · 1.52 KB
/
diff-translations.yml
File metadata and controls
52 lines (50 loc) · 1.52 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Translations Diff
on:
pull_request_review:
pull_request:
types: [opened, edited, synchronize, ready_for_review]
branches:
- development
- master
jobs:
translation:
runs-on: ubuntu-latest
steps:
- name: Checkout Base Branch
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
path: neve-base
- name: Setup node 16
uses: actions/setup-node@v4
with:
node-version: 16.x
- name: Build POT for Base Branch
run: |
cd neve-base
ls languages/
composer install --no-dev --prefer-dist --no-progress --no-suggest
yarn install --frozen-lockfile
yarn run build
ls languages/
- name: Checkout PR Branch (Head)
uses: actions/checkout@v4
with:
path: neve-head
- name: Build POT for PR Branch
run: |
cd neve-head
ls languages/
composer install --no-dev --prefer-dist --no-progress --no-suggest
yarn install --frozen-lockfile
yarn run build
ls languages/
- name: Compare POT files
uses: Codeinwp/action-i18n-string-reviewer@main
with:
fail-on-changes: 'true'
openrouter-key: ${{ secrets.OPEN_ROUTER_API_KEY }}
openrouter-model: 'google/gemini-2.5-flash'
base-pot-file: 'neve-base/languages/neve.pot'
target-pot-file: 'neve-head/languages/neve.pot'
github-token: ${{ secrets.BOT_TOKEN }}