Skip to content

Commit

Permalink
Add fail on error.
Browse files Browse the repository at this point in the history
  • Loading branch information
paulness committed Dec 13, 2018
1 parent d375ace commit e54168b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trigger-circleci-workflow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ GITHUB_BRANCH="$(echo "$GITHUB_REF" | cut -c 12-)"
echo "Triggering CircleCI workflow for the following. $GITHUB_OWNER/$GITHUB_REPO - $GITHUB_BRANCH"

curl -u "$CIRCLE_TOKEN": \
--silent --show-error --fail \
-X POST --header "Content-Type: application/json" \
-d "{\"branch\":\"$GITHUB_BRANCH\"}" \
"https://circleci.com/api/v1.1/project/github/$GITHUB_OWNER/$GITHUB_REPO/build"

0 comments on commit e54168b

Please sign in to comment.