Skip to content

Commit

Permalink
[chore] don't allow publish if branch is not master.
Browse files Browse the repository at this point in the history
  • Loading branch information
diasbruno committed Apr 24, 2018
1 parent d6931d1 commit 92cae36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ check-working-tree:
.branch:
@echo "[Release from branch]"
@git branch | grep '^*' | awk '{ print $$2 }' > .branch
@[[ "`git branch | awk '{ print $$2 }'`" != "master" ]] && echo "Fail. Current branch is not master." && exit 1
@echo "Current branch: `cat .branch`"

changelog:
Expand Down

0 comments on commit 92cae36

Please sign in to comment.