From 8873b3d17e95548c2aa07badabb34e55336892fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Budai?= Date: Fri, 13 Mar 2020 14:39:14 +0100 Subject: [PATCH] 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. --- .github/workflows/tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ae3c54316..cae2fb03e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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"