From a78b3dfd6389ca15b3e00480083ef987718ba390 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Tue, 3 May 2022 16:08:01 +0100 Subject: [PATCH] Tweak i18n ci rule to ignore RiotTranslateBot (#354) --- .github/workflows/static_analysis.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/static_analysis.yaml b/.github/workflows/static_analysis.yaml index 186b284..93e29a1 100644 --- a/.github/workflows/static_analysis.yaml +++ b/.github/workflows/static_analysis.yaml @@ -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