Skip to content

Instantly share code, notes, and snippets.

@gionn
Created February 15, 2017 13:48
Show Gist options
  • Save gionn/2433a0c761ad189663d5d87a0d590182 to your computer and use it in GitHub Desktop.
Save gionn/2433a0c761ad189663d5d87a0d590182 to your computer and use it in GitHub Desktop.
Script to request a circleci build via $GH_REPO and $CIRCLE_TOKEN environment variables
#!/bin/bash -e
curl \
--header "Content-Type: application/json" \
--request POST \
https://circleci.com/api/v1.1/project/github/$GH_REPO/tree/master?circle-token=$CIRCLE_TOKEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment