Tweak i18n ci rule to ignore RiotTranslateBot (#354)

This commit is contained in:
Michael Telatynski 2022-05-03 16:08:01 +01:00 committed by GitHub
parent ed24e44d4b
commit a78b3dfd63
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,7 +31,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: |
@ -40,7 +40,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