From dc672313ec37d0afb3e3ded22faf5ad03c5699fe Mon Sep 17 00:00:00 2001 From: Kei Okada Date: Wed, 19 Jun 2019 17:31:13 +0900 Subject: [PATCH] stop executing all the next steps if there is no doc update, see https://discuss.circleci.com/t/ability-to-return-successfully-from-a-job-before-completing-all-the-next-steps/12969/7 --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 69175f806..5aa9c4dc7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -139,7 +139,7 @@ jobs: if [ "${CIRCLE_BRANCH}" == master ]; then exit 0; fi echo "Check if there is commit in doc directory" git diff origin/master --name-only --relative doc - if [ "`git diff origin/master --name-only --relative doc`" == "" ]; then echo "No update in doc directory found, exitting... "; exit 0 ; fi + if [ "`git diff origin/master --name-only --relative doc`" == "" ]; then echo "No update in doc directory found, exitting... "; circleci step halt; fi echo "Found new commit on doc directory" - run: cd .circleci/ && git clone https://github.com/themadcreator/circle-github-bot.git - run: cd .circleci/circle-github-bot && npm install