Fix script for checking on existing translations (#114354)
This commit is contained in:
parent
a07dc85bf4
commit
ed90df309c
1 changed files with 2 additions and 4 deletions
6
.github/workflows/builder.yml
vendored
6
.github/workflows/builder.yml
vendored
|
@ -53,11 +53,9 @@ jobs:
|
||||||
|
|
||||||
- name: Fail if translations files are checked in
|
- name: Fail if translations files are checked in
|
||||||
run: |
|
run: |
|
||||||
files=$(find homeassistant/components/*/translations -type f)
|
if [ -n "$(find homeassistant/components/*/translations -type f)" ]; then
|
||||||
|
|
||||||
if [ -n "$files" ]; then
|
|
||||||
echo "Translations files are checked in, please remove the following files:"
|
echo "Translations files are checked in, please remove the following files:"
|
||||||
echo "$files"
|
find homeassistant/components/*/translations -type f
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue