Skip to content

Commit d182dad

Browse files
author
Michael Freedman
committed
Only try to deploy when master and not a pull request
1 parent 9fc5427 commit d182dad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script/deploy-staging.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -ev
44

5-
if [[ "$TRAVIS_BRANCH" == "master" ]]; then
5+
if [[ "$TRAVIS_BRANCH" == "master" ]] && "$TRAVIS_PULL_REQUEST" == false; then
66
wget -q -O cf-cli.deb https://cli.run.pivotal.io/stable?release=debian64
77
sudo dpkg -i cf-cli.deb
88
cf login -u $CF_USERNAME -p $CF_PASSWORD -o pivotallabs -s whiteboard -a https://api.run.pivotal.io

0 commit comments

Comments
 (0)