diff --git a/action/lib/index.js b/action/lib/index.js index 771b461..8db5fc2 100644 --- a/action/lib/index.js +++ b/action/lib/index.js @@ -28,6 +28,8 @@ export default async function ({ token, delay, timeout }) { // date to check against const before = new Date(created_at) + core.info(`searching for workflow runs before ${before}`) + // get previous runs let waiting_for = await runs({ octokit, run_id, workflow_id, before }) diff --git a/action/lib/runs.js b/action/lib/runs.js index 34ec9cc..8dd7960 100644 --- a/action/lib/runs.js +++ b/action/lib/runs.js @@ -23,8 +23,8 @@ export default async function ({ octokit, workflow_id, run_id, before }) { // get older runs .filter(run => new Date(run.created_at) < before) - core.debug(`found ${waiting_for.length} workflow runs`) - core.debug(inspect(waiting_for)) + core.info(`found ${waiting_for.length} workflow runs`) + core.debug(inspect(waiting_for.map(run => ({ id: run.id, name: run.name })))) return waiting_for }