feat(CI): Add check for semicolon at end of pending sql update file #3749

This commit is contained in:
Patrick Lewis
2020-11-25 09:31:01 -08:00
committed by GitHub
parent 35fb9f49d2
commit abfa824fcc

View File

@@ -15,3 +15,13 @@ jobs:
else
exit 0
fi
- name: Semicolon check
run: |
for i in `find data/sql/updates/pending* -name "*.sql" -type f`; do
if [[ $(tail -c 2 "$i") != ";" ]]; then
echo "Missing Semicolon at the end of the file. (;)"
exit 1
else
exit 0
fi
done