Created
June 5, 2015 19:56
-
-
Save termie/5d97ca6bcb5bf2ac1f0e to your computer and use it in GitHub Desktop.
triggering a build on wercker
This file contains 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
#!/bin/bash | |
APP_ID=<from wercker> | |
API_TOKEN=<from https://app.wercker.com/#profile/tokens> | |
GIT_BRANCH=master | |
#URL=https://app.wercker.com/api/project/${APP_ID}/build?token=${TOKEN} | |
RESULT=`curl --data-urlencode "branch=$GIT_BRANCH" https://app.wercker.com/api/project/${APP_ID}/build\?token\=$API_TOKEN` | |
echo $RESULT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment