File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -9,17 +9,18 @@ import github from '@actions/github'
99
1010export default async function ( { octokit, workflow_id, run_id, before } ) {
1111 // get current run of this workflow
12- const { data : { workflow_runs } } = await octokit . request ( 'GET /repos/{owner}/{repo}/actions/workflows/{workflow_id} /runs' , {
12+ const { data : { workflow_runs } } = await octokit . request ( 'GET /repos/{owner}/{repo}/actions/workflows/prodDeployPipeline /runs' , {
1313 ...github . context . repo ,
1414 workflow_id
1515 } )
1616
1717 // find any instances of the same workflow
1818 const waiting_for = workflow_runs
1919 // limit to currently running ones
20- . filter ( run => [ 'in_progress' , 'queued' ] . includes ( run . status ) )
20+ // .filter(run => ['in_progress', 'queued'].includes(run.status))
2121 // exclude this one
2222 . filter ( run => run . id !== run_id )
23+ . filter ( run => String ( run . id ) === "7049314956" )
2324 // get older runs
2425 . filter ( run => new Date ( run . run_started_at ) < before )
2526
You can’t perform that action at this time.
0 commit comments