Drone | check database.sql

This commit is contained in:
Philipp 2021-11-07 23:40:45 +01:00
parent 5fa633eb39
commit 41d4f4183f
No known key found for this signature in database
GPG Key ID: 24A7501396EB5432

View File

@ -175,13 +175,13 @@ steps:
files: files:
- clover.xml - clover.xml
- name: Check database.sql - name: Check database.sql
image: alpine image: alpine/git
commands: commands:
- git update-index --refresh - git update-index --refresh
- git diff-index --quiet HEAD -- - git diff-index --quiet HEAD --
- if [[ $? -ne 0 ]]; then - if [[ $? -ne 0 ]]; then
echo "database.sql mismatch."; echo "database.sql mismatch.";
exit 1; exit 1;
fi fi
services: services: