We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0df8c6 commit 085d47cCopy full SHA for 085d47c
src/index.ts
@@ -59,7 +59,7 @@ async function main() {
59
60
let cancel_before;
61
if (all_but_latest) {
62
- cancel_before = new Date(data.workflow_runs.reduce((a, b) => a.created_at < b.created_at ? a.created_at : b.created_at));
+ cancel_before = new Date(data.workflow_runs.reduce((a, b) => Math.min(a.created_at, b.created_at);
63
} else {
64
cancel_before = new Date(current_run.created_at);
65
}
0 commit comments