Skip to content

Commit f70dd58

Browse files
authored
Merge pull request #390 from k-okada/master
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
2 parents def7590 + dc67231 commit f70dd58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.circleci/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ jobs:
139139
if [ "${CIRCLE_BRANCH}" == master ]; then exit 0; fi
140140
echo "Check if there is commit in doc directory"
141141
git diff origin/master --name-only --relative doc
142-
if [ "`git diff origin/master --name-only --relative doc`" == "" ]; then echo "No update in doc directory found, exitting... "; exit 0 ; fi
142+
if [ "`git diff origin/master --name-only --relative doc`" == "" ]; then echo "No update in doc directory found, exitting... "; circleci step halt; fi
143143
echo "Found new commit on doc directory"
144144
- run: cd .circleci/ && git clone https://github.com/themadcreator/circle-github-bot.git
145145
- run: cd .circleci/circle-github-bot && npm install

0 commit comments

Comments
 (0)