From 2a5b88e5b14a58e0a04eb2e58cd1b83335647368 Mon Sep 17 00:00:00 2001 From: Alvin Huang <17609145+alvin-huang@users.noreply.github.com> Date: Thu, 21 Jan 2021 18:29:26 -0500 Subject: [PATCH] ci: change check-vendor to verify git status has no changes (#9615) --- .circleci/config.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c1c96b4fcb..0b58b4e33c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -153,8 +153,9 @@ jobs: - run: command: make update-vendor - run: | - if ! git diff --exit-code; then - echo "Git directory has vendor changes" + if [[ -z $(git status -s) ]]; then + echo "Git directory has changes" + git status -s exit 1 fi - run: *notify-slack-failure