Last active
May 22, 2017 11:16
-
-
Save famousgarkin/8df61982f85bb51a697067bf82c18d63 to your computer and use it in GitHub Desktop.
Travis CI workaround for $TRAVIS_BRANCH contains target branch on PR, not source branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE: $TRAVIS_BRANCH contains target branch on PR, not source branch | |
# ref https://docs.travis-ci.com/user/environment-variables/#Default-Environment-Variables | |
export MY_TRAVIS_BRANCH=${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment