[ci] getWorkflowRun should not throw early if workflow hasn't completed

We already have handling and retry logic for in-flight workflows in `downloadArtifactsFromGitHub`, so there's no need to exit early if we find a workflow for a given commit but it hasn't finished yet.
This commit is contained in:
Lauren Tan
2024-12-19 12:55:30 -05:00
parent 8f92ea467e
commit 9c70ff59d6
@@ -43,12 +43,7 @@ async function getWorkflowRun(commit) {
);
const json = JSON.parse(res.stdout);
const workflowRun = json.workflow_runs.find(
run =>
run.head_sha === commit &&
run.status === 'completed' &&
run.conclusion === 'success'
);
const workflowRun = json.workflow_runs.find(run => run.head_sha === commit);
if (workflowRun == null || workflowRun.id == null) {
console.log(