Prune i18n files (#8479)
* Prune i18n files * Tweak i18n ci rule to ignore RiotTranslateBot
This commit is contained in:
parent
3d0045dab5
commit
2e9c2dd42b
18 changed files with 5 additions and 7430 deletions
7
.github/workflows/static_analysis.yaml
vendored
7
.github/workflows/static_analysis.yaml
vendored
|
@ -47,7 +47,7 @@ jobs:
|
|||
|
||||
- name: "Get modified files"
|
||||
id: changed_files
|
||||
if: github.event_name == 'pull_request'
|
||||
if: github.event_name == 'pull_request' && github.actor != 'RiotTranslateBot'
|
||||
uses: tj-actions/changed-files@v19
|
||||
with:
|
||||
files: |
|
||||
|
@ -56,7 +56,10 @@ jobs:
|
|||
src/i18n/strings/en_EN.json
|
||||
|
||||
- name: "Assert only en_EN was modified"
|
||||
if: github.event_name == 'pull_request' && steps.changed_files.outputs.any_modified == 'true'
|
||||
if: |
|
||||
github.event_name == 'pull_request' &&
|
||||
github.actor != 'RiotTranslateBot' &&
|
||||
steps.changed_files.outputs.any_modified == 'true'
|
||||
run: |
|
||||
echo "You can only modify en_EN.json, do not touch any of the other i18n files as Weblate will be confused"
|
||||
exit 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue