From 9e036d4b8156edd7a42266917ac99a15fa9e903a Mon Sep 17 00:00:00 2001 From: komuW Date: Tue, 28 Aug 2018 18:09:52 +0300 Subject: [PATCH] special case masterr --- .circleci/config.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index bb46e934..c0d244c4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -153,13 +153,17 @@ jobs: - run: name: check if changes have release notes command: | - ChangedFiles=`git diff --name-only $CIRCLE_BRANCH origin/master` - case "$ChangedFiles" in - *RELEASE_NOTES.*) - printf "\n Thanks, your commits include update to release notes. \n";; - *) - printf "\n You should add release notes to .github/RELEASE_NOTES.md \n" && exit 77;; - esac + if [ "$CIRCLE_BRANCH" == "master" ]; then + printf "\n $CIRCLE_BRANCH branch, ignoring check for relese notes \n" + else + ChangedFiles=`git diff --name-only $CIRCLE_BRANCH origin/master` + case "$ChangedFiles" in + *RELEASE_NOTES.*) + printf "\n Thanks, your commits include update to release notes. \n";; + *) + printf "\n You should add release notes to .github/RELEASE_NOTES.md \n" && exit 77;; + esac + fi deploy: docker: