Update weblateToCounterpart to be more resilient (#22247)

* Update i18n check CI to ignore RiotTranslateBot

* Update `weblateToCounterpart` to be more resilient
This commit is contained in:
Michael Telatynski 2022-05-17 17:44:30 +01:00 committed by GitHub
parent aca0346f4e
commit b3ef2c179a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 3 deletions

View file

@ -44,7 +44,10 @@ jobs:
files_ignore: |
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