Skip to content

Commit f40e9cd

Browse files
authored
Removed condition that is limiting deletion
1 parent 0a28a6b commit f40e9cd

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

dist/index.js

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,16 +62,13 @@ async function run() {
6262
repo: repo_name,
6363
});
6464

65-
// Creates the delete runs array, and adds the runs that don't have a workflow associated with it
6665
let del_runs = new Array();
6766
for (const run of all_runs) {
68-
if (!workflow_ids.includes(run.workflow_id)) {
67+
// Creates the delete runs array, and adds the runs that don't have a workflow associated with it
68+
// if (!workflow_ids.includes(run.workflow_id)) { -> Deleted this condition. It doesn't make sense.
6969
del_runs.push(run);
7070
core.debug(` Added to del list '${run.name}' workflow run ${run.id}`);
71-
}
72-
else {
73-
core.debug(` Skipped '${run.name}' workflow run ${run.id}`);
74-
}
71+
// }
7572
}
7673

7774
console.log(`💬 found total of ${del_runs.length} workflow run(s)`);

0 commit comments

Comments
 (0)