File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -630,19 +630,17 @@ class Github {
630630
631631 const workflowRuns = await octokitClient . paginate (
632632 octokitClient . actions . listWorkflowRunsForRepo ,
633- { owner, repo }
633+ { owner, repo, status }
634634 ) ;
635635
636636 let runJobs = await Promise . all (
637- workflowRuns
638- . filter ( ( { status : jobStatus } ) => jobStatus === status )
639- . map (
640- async ( { id } ) =>
641- await octokitClient . paginate (
642- octokitClient . actions . listJobsForWorkflowRun ,
643- { owner, repo, run_id : id , status }
644- )
645- )
637+ workflowRuns . map (
638+ async ( { id } ) =>
639+ await octokitClient . paginate (
640+ octokitClient . actions . listJobsForWorkflowRun ,
641+ { owner, repo, run_id : id , status }
642+ )
643+ )
646644 ) ;
647645
648646 runJobs = [ ] . concat . apply ( [ ] , runJobs ) . map ( ( job ) => {
You can’t perform that action at this time.
0 commit comments