Skip to content

Commit 08b1f7d

Browse files
committed
updates
1 parent e0c1604 commit 08b1f7d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

dist/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9758,10 +9758,9 @@ var external_util_ = __nccwpck_require__(3837);
97589758
// find any instances of the same workflow
97599759
const waiting_for = workflow_runs
97609760
// limit to currently running ones
9761-
//.filter(run => ['in_progress', 'queued'].includes(run.status))
9761+
.filter(run => ['in_progress', 'queued', 'waiting', 'pending','action_required', 'requested'].includes(run.status))
97629762
// exclude this one
97639763
.filter(run => run.id !== run_id)
9764-
.filter(run => String(run.id) === "7049314956")
97659764
// get older runs
97669765
.filter(run => new Date(run.run_started_at) < before)
97679766

src/lib/runs.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ export default async function ({ octokit, workflow_id, run_id, before }) {
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', 'waiting', 'pending','action_required', 'requested'].includes(run.status))
2121
// exclude this one
2222
.filter(run => run.id !== run_id)
23-
.filter(run => String(run.id) === "7049314956")
2423
// get older runs
2524
.filter(run => new Date(run.run_started_at) < before)
2625

0 commit comments

Comments
 (0)