Prune i18n files (#8479)

* Prune i18n files

* Tweak i18n ci rule to ignore RiotTranslateBot
This commit is contained in:
Michael Telatynski 2022-05-03 16:09:11 +01:00 committed by GitHub
parent 3d0045dab5
commit 2e9c2dd42b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 5 additions and 7430 deletions

View file

@ -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