Skip to content

Instantly share code, notes, and snippets.

@mcupak
Last active January 24, 2019 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcupak/74e566507aa899ad8d66ad561aa13ed0 to your computer and use it in GitHub Desktop.
Save mcupak/74e566507aa899ad8d66ad561aa13ed0 to your computer and use it in GitHub Desktop.
Obtaining a URL to a file in a GitHub repository in a Travis CI build
env:
- FILE_URL=https://raw.githubusercontent.com/${TRAVIS_PULL_REQUEST_SLUG:-$TRAVIS_REPO_SLUG}/${TRAVIS_PULL_REQUEST_BRANCH:-$TRAVIS_BRANCH}/{FILE_PATH}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment