mirror of
https://github.com/CringeStudios/element-desktop.git
synced 2025-01-31 05:29:58 +01:00
Tweak i18n ci rule to ignore RiotTranslateBot (#354)
This commit is contained in:
parent
ed24e44d4b
commit
a78b3dfd63
7
.github/workflows/static_analysis.yaml
vendored
7
.github/workflows/static_analysis.yaml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user