1
1
mirror of https://github.com/primer/css.git synced 2024-11-30 11:17:05 +03:00

fix branch variable setting

This commit is contained in:
Shawn Allen 2017-07-20 17:34:17 -07:00
parent 6e68955260
commit 7af1dfa022

View File

@ -6,7 +6,11 @@ set -e
args=$@ args=$@
event="$TRAVIS_EVENT_TYPE" event="$TRAVIS_EVENT_TYPE"
branch="${TRAVIS_PULL_REQUEST_BRANCH=${TRAVIS_BRANCH}}" branch="$TRAVIS_BRANCH"
# use $TRAVIS_PULL_REQUEST_BRANCH if this is a PR
if [[ "$event" = "pull_request" ]]; then
branch="$TRAVIS_PULL_REQUEST_BRANCH"
fi
echo "==== CI env ====" echo "==== CI env ===="
echo "event: $event" echo "event: $event"