Skip to content

Instantly share code, notes, and snippets.

@elalemanyo
Created September 21, 2020 10:11
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 elalemanyo/d2e6988fa6016974c433bc5e7ef24f29 to your computer and use it in GitHub Desktop.
Save elalemanyo/d2e6988fa6016974c433bc5e7ef24f29 to your computer and use it in GitHub Desktop.
Deploy to travis
body='{
"request": {
"branch":"master"
}}'
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token [travis token]" \
-d "$body" \
https://api.travis-ci.com/repo/[repo url]/requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment