mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
[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:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user