Skip to content

Commit

Permalink
special case masterr
Browse files Browse the repository at this point in the history
  • Loading branch information
komuw committed Aug 28, 2018
1 parent a556013 commit 9e036d4
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9e036d4

Please sign in to comment.