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:
parent
6e68955260
commit
7af1dfa022
@ -6,7 +6,11 @@ set -e
|
||||
args=$@
|
||||
|
||||
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 "event: $event"
|
||||
|
Loading…
Reference in New Issue
Block a user