Skip to content

Commit 7c50b6e

Browse files
committed
feat(info): better info logging
1 parent 8dd7d76 commit 7c50b6e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

action/lib/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ export default async function ({ token, delay, timeout }) {
2828
// date to check against
2929
const before = new Date(created_at)
3030

31+
core.info(`searching for workflow runs before ${before}`)
32+
3133
// get previous runs
3234
let waiting_for = await runs({ octokit, run_id, workflow_id, before })
3335

action/lib/runs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export default async function ({ octokit, workflow_id, run_id, before }) {
2323
// get older runs
2424
.filter(run => new Date(run.created_at) < before)
2525

26-
core.debug(`found ${waiting_for.length} workflow runs`)
27-
core.debug(inspect(waiting_for))
26+
core.info(`found ${waiting_for.length} workflow runs`)
27+
core.debug(inspect(waiting_for.map(run => ({ id: run.id, name: run.name }))))
2828

2929
return waiting_for
3030
}

0 commit comments

Comments
 (0)