Skip to content

Commit 58079cf

Browse files
committed
fixup! releaser: Trigger and list app builds
1 parent 5277435 commit 58079cf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tools/releaser/src/utils/github.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,8 +901,12 @@ export async function triggerBuildWorkflows(
901901
per_page: 5
902902
});
903903

904-
// Find the most recent run (should be the one we just triggered)
905-
const latestRun = runs.workflow_runs[0];
904+
// Find the most recent run (should be the one we just triggered)
905+
if (runs.workflow_runs.length > 0) {
906+
latestRun = runs.workflow_runs[0];
907+
break;
908+
}
909+
}
906910

907911
if (latestRun) {
908912
triggeredRuns.push({

0 commit comments

Comments
 (0)