chore(CI): Improve error message of check_pending_sql (#4081)
This commit is contained in:
parent
ce4dbbce76
commit
be04dcec0e
1 changed files with 2 additions and 2 deletions
4
.github/workflows/check_pending_sql.yml
vendored
4
.github/workflows/check_pending_sql.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue