From a62e4496baf671852d7ecb9c6a09faf9ba183428 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 0819f39438..4b25830f22 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -143,8 +143,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