chore(CI): Improve error message of check_pending_sql (#4081)

This commit is contained in:
Kitzunu 2021-01-21 10:20:33 +01:00 committed by GitHub
parent ce4dbbce76
commit be04dcec0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,4 +1,4 @@
name: Check pending sql for Procedure/Function
name: Check pending SQL
on:
pull_request:
@ -20,7 +20,7 @@ jobs:
run: |
for i in `find data/sql/updates/pending* -name "*.sql" -type f`; do
if [[ $(cat "$i"|sed 's/ --.*$//'|tr -d '\n'|tail -c 1) != ";" ]]; then
echo "Missing Semicolon at the end of the file. (;)"
echo "Missing Semicolon (;) or multiple newlines at the end of the file."
exit 1
else
exit 0