Skip to content

Commit 124155c

Browse files
authored
Update runs.js
1 parent f547ac8 commit 124155c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/lib/runs.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,18 @@ import github from '@actions/github'
99

1010
export 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

0 commit comments

Comments
 (0)