From e2e5b380fb9178e3a7bbefab3e2be57b5c9a6bf9 Mon Sep 17 00:00:00 2001 From: "Justin R. Miller" Date: Fri, 13 Nov 2015 15:21:54 -0800 Subject: [PATCH] also look in commit bodies for CI skipping commands [skip ci] (see what I did there?) --- bitrise.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bitrise.yml b/bitrise.yml index 90b3f4f25..7694f10f4 100644 --- a/bitrise.yml +++ b/bitrise.yml @@ -22,8 +22,10 @@ workflows: - content: |- #!/bin/bash - if [[ -n "$(echo $GIT_CLONE_COMMIT_MESSAGE_SUBJECT | sed -n '/\[skip ci\]/p')" || - -n "$(echo $GIT_CLONE_COMMIT_MESSAGE_SUBJECT | sed -n '/\[ci skip\]/p')" ]]; then + if [[ -n "$(echo $GIT_CLONE_COMMIT_MESSAGE_SUBJECT | sed -n '/\[skip ci\]/p')" || + -n "$(echo $GIT_CLONE_COMMIT_MESSAGE_SUBJECT | sed -n '/\[ci skip\]/p')" || + -n "$(echo $GIT_CLONE_COMMIT_MESSAGE_BODY | sed -n 's/\[skip ci\]/p')" || + -n "$(echo $GIT_CLONE_COMMIT_MESSAGE_BODY | sed -n 's/\[ci skip\]/p')" ]]; then envman add --key SKIPCI --value true else envman add --key SKIPCI --value false