From 6a1748da0608428fe902a3fc04a27899cd9803ad Mon Sep 17 00:00:00 2001 From: John Kleinschmidt Date: Mon, 25 Apr 2022 11:14:16 -0400 Subject: [PATCH] ci: update release script to handle new CircleCI configs (#33914) --- script/release/ci-release-build.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/release/ci-release-build.js b/script/release/ci-release-build.js index 61b413f76a1c..2e716bb67de2 100644 --- a/script/release/ci-release-build.js +++ b/script/release/ci-release-build.js @@ -110,12 +110,12 @@ async function getCircleCIWorkflowId (pipelineId) { switch (pipelineInfo.state) { case 'created': { const workflows = await circleCIRequest(`${pipelineInfoUrl}/workflow`, 'GET'); - // The logic below expects two workflow.items: publish [0] & setup [1] - if (workflows.items.length === 2) { + // The logic below expects three workflow.items: publish, lint, & setup + if (workflows.items.length === 3) { workflowId = workflows.items.find(item => item.name.includes('publish')).id; break; } - console.log('Unxpected number of workflows, response was:', pipelineInfo); + console.log('Unxpected number of workflows, response was:', workflows); workflowId = -1; break; }