ci: change check-vendor to verify git status has no changes (#9615)

This commit is contained in:
Alvin Huang 2021-01-21 18:29:26 -05:00 committed by GitHub
parent e54d451e25
commit 90cf562311
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -153,8 +153,9 @@ jobs:
- run: - run:
command: make update-vendor command: make update-vendor
- run: | - run: |
if ! git diff --exit-code; then if [[ -z $(git status -s) ]]; then
echo "Git directory has vendor changes" echo "Git directory has changes"
git status -s
exit 1 exit 1
fi fi
- run: *notify-slack-failure - run: *notify-slack-failure