Skip to content

Commit

Permalink
Fix to only create a release on the master branch
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonRivers committed Mar 2, 2017
1 parent 7a35f2d commit 3046c14
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions GH-Release.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

GIT_BRANCH=${JOB_NAME#*/*/}

if ! [ "${GIT_BRANCH}" = "master" ]; then
echo "skipping creating release for ${GIT_BRANCH}"
exit 0
Expand Down

0 comments on commit 3046c14

Please sign in to comment.