ci/source-check: check also the unstaged files

Prior this commit it was possible to pass the CI checks even without added
files in vendor directory, because git diff doesn't check for unstaged
files. This commit fixes it.
This commit is contained in:
Ondřej Budai 2020-03-13 14:39:14 +01:00 committed by Tom Gundersen
parent 616b6250c7
commit 8873b3d17e

View file

@ -28,10 +28,10 @@ jobs:
- name: Check that source has been prepared
run: |
./tools/prepare-source.sh
if ! git diff --quiet --exit-code ; then
if [ -n "$(git status --porcelain)" ]; then
echo
echo "Please include these changes in your branch: "
git diff
git status -vv
exit "1"
else
exit "0"