mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
feat(CI): Add check for semicolon at end of pending sql update file #3749
This commit is contained in:
10
.github/workflows/check_pending_sql.yml
vendored
10
.github/workflows/check_pending_sql.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user