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:
parent
616b6250c7
commit
8873b3d17e
1 changed files with 2 additions and 2 deletions
4
.github/workflows/tests.yml
vendored
4
.github/workflows/tests.yml
vendored
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue