build: account for path-filtering workflow in release-build script (#32063)
* build: account for path-filtering workflow in release-build script * build: update syntax for workflow id Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
This commit is contained in:
parent
3278ff6a05
commit
83a4b234d7
1 changed files with 3 additions and 2 deletions
|
@ -110,8 +110,9 @@ async function getCircleCIWorkflowId (pipelineId) {
|
||||||
switch (pipelineInfo.state) {
|
switch (pipelineInfo.state) {
|
||||||
case 'created': {
|
case 'created': {
|
||||||
const workflows = await circleCIRequest(`${pipelineInfoUrl}/workflow`, 'GET');
|
const workflows = await circleCIRequest(`${pipelineInfoUrl}/workflow`, 'GET');
|
||||||
if (workflows.items.length === 1) {
|
// The logic below expects two workflow.items: publish [0] & setup [1]
|
||||||
workflowId = workflows.items[0].id;
|
if (workflows.items.length === 2) {
|
||||||
|
workflowId = workflows.items.find(item => item.name.includes('publish')).id;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
console.log('Unxpected number of workflows, response was:', pipelineInfo);
|
console.log('Unxpected number of workflows, response was:', pipelineInfo);
|
||||||
|
|
Loading…
Reference in a new issue