mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-09 00:08:01 +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
|
else
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
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