Skip to content

Commit

Permalink
chore: workflows and pipeline state were split in the circle API (#21441
Browse files Browse the repository at this point in the history
)
  • Loading branch information
MarshallOfSound committed Dec 9, 2019
1 parent 3cb0ed3 commit ec0edb7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions script/release/ci-release-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@ async function getCircleCIWorkflowId (pipelineId) {
const pipelineInfo = await circleCIRequest(pipelineInfoUrl, 'GET')
switch (pipelineInfo.state) {
case 'created': {
if (pipelineInfo.workflows.length === 1) {
workflowId = pipelineInfo.workflows[0].id
const workflows = await circleCIRequest(`${pipelineInfoUrl}/workflow`, 'GET')
if (workflows.items.length === 1) {
workflowId = workflows.items[0].id
break
}
console.log('Unxpected number of workflows, response was:', pipelineInfo)
Expand Down

0 comments on commit ec0edb7

Please sign in to comment.