Skip to content

Commit

Permalink
CircleCI api changed- updating calls (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
bsessions85 authored Dec 10, 2019
1 parent ecec0bb commit 942a72d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ function executeCircleCIBuild( liveBranches, branchArg, branchName, e2eBranchNam
if ( response.statusCode === 201 ) {
let statusURL;
let workflowID;
let getWorkflowURL = circleCIGetWorkflowURL + JSON.parse( response.body ).id + `?circle-token=${ process.env.CIRCLECI_SECRET}`;
let getWorkflowURL = circleCIGetWorkflowURL + JSON.parse( response.body ).id + `/workflow?circle-token=${ process.env.CIRCLECI_SECRET}`;
let workflowFound = false;
let i = 0;
log.info( `Tests have been kicked off on branch ${runBranch} for ${prContext} - updating PR status now` );
Expand All @@ -176,7 +176,7 @@ function executeCircleCIBuild( liveBranches, branchArg, branchName, e2eBranchNam
log.error( 'ERROR: ' + responseError );
}
//Make sure a workflow id was returned
let workflows = JSON.parse( responseCI.body ).workflows;
let workflows = JSON.parse( responseCI.body ).items;
if ( workflows.length === 0 ) {
return;
}
Expand Down

0 comments on commit 942a72d

Please sign in to comment.