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