Skip to content

Commit ec127af

Browse files
committed
Try using a script
1 parent 8e33593 commit ec127af

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.circleci/config.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ jobs:
4545
- image: circleci/node:8.15-browsers
4646
user: root
4747
steps:
48-
- run: 'curl -X POST -H -d \
49-
"{build_parameters: {CIRCLE_JOB: deploy_stage}}" \
50-
https://circleci.com/api/v1/project/blocknative/react-demo/tree/develop?circle-token=$CIRCLE_TOKEN'
48+
- run: ./trigger-demo-build.sh $CIRCLE_TOKEN
5149

5250
workflows:
5351
version: 2

.circleci/trigger-demo-build.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
TOKEN=$1
3+
curl -X POST --header "Content-Type: application/json" -d '{"build_parameters": {"CIRCLE_JOB": "deploy_stage"}}' https://circleci.com/api/v1/project/blocknative/react-demo/tree/develop?circle-token=$TOKEN

0 commit comments

Comments
 (0)