forked from mattermost/mattermost
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 1014 Bytes
/
i18n-ci-template.yml
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
# Base CI template which is called from i18n-ci-pr.yml
name: i18n CI Template
on:
workflow_call:
jobs:
check-files:
name: Check only English translation files changed
runs-on: ubuntu-22.04
if: github.event.pull_request.user.login != 'weblate' # Allow weblate to modify non-English
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@bab30c2299617f6615ec02a68b9a40d10bd21366 # v45.0.5
with:
files: |
server/i18n/*.json
webapp/channels/src/i18n/*.json
!server/i18n/en.json
!webapp/channels/src/i18n/en.json
- name: Check changed files
if: steps.changed-files.outputs.any_changed == 'true'
run: |
echo "::error title=Non-English i18n files changed::Only PRs from weblate should modify non-English translation files."
exit 1