Skip to content

Instantly share code, notes, and snippets.

@oripwk
Created October 21, 2017 11:29
Show Gist options
  • Save oripwk/a9c85660f1c3f51c40a77af94d442461 to your computer and use it in GitHub Desktop.
Save oripwk/a9c85660f1c3f51c40a77af94d442461 to your computer and use it in GitHub Desktop.
# This script allows you to build any CircleCI project without pushing
# the whole project to Github with a new config.yml. This is ideal for
# trying out different builds without polluting commit history.
#
# everything is self explanatory, just generate the API token from CircleCI user menu.
curl -XPOST --user ${API_TOKEN}:\
--form revision=${GITHUB_COMMIT}\
--form config=@${CONFIG_YML}\
"https://circleci.com/api/v1.1/project/github/${ORG}/${REPO}/tree/${BRANCH}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment