Skip to content

Commit

Permalink
prevent releasing from a push check inside a PR
Browse files Browse the repository at this point in the history
  • Loading branch information
harelba committed Sep 19, 2020
1 parent b4aedcf commit 9b428e2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions do-manual-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,20 @@ set -e

VERSION=2.0.18

echo "TRAVIS_BRANCH is $TRAVIS_BRANCH . TRAVIS_PULL_REQUEST_BRANCH is $TRAVIS_PULL_REQUEST_BRANCH"

if [[ "$TRAVIS_BRANCH" != "master" ]]
then
echo "Not releasing - not on master branch (${TRAVIS_BRANCH})"
exit 0
fi

if [[ "$TRAVIS_PULL_REQUEST_BRANCH" != "" ]]
then
echo "Not releasing - push check in PR"
exit 0
fi

echo "Packing binary for $TRAVIS_OS_NAME"

if [[ "$TRAVIS_OS_NAME" == "osx" || "$TRAVIS_OS_NAME" == "linux" ]]
Expand Down

0 comments on commit 9b428e2

Please sign in to comment.