mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
chore: workflows and pipeline state were split in the circle API (#21441)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user