Skip to content

Commit e7d0539

Browse files
committed
more debugging...
1 parent ad0d235 commit e7d0539

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

dev-packages/size-limit-gh-action/index.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,20 @@ export async function getArtifactsForBranchAndWorkflow(octokit, { owner, repo, w
362362
}
363363

364364
const workflow_id = repositoryWorkflow.id;
365+
core.info(repositoryWorkflow);
365366

366367
let currentPage = 0;
367368
const completedWorkflowRuns = [];
368369

370+
core.info('Get runs for:');
371+
core.info({
372+
workflow_id,
373+
branch,
374+
status: 'success',
375+
per_page: DEFAULT_PAGE_LIMIT,
376+
event: 'push',
377+
});
378+
369379
for await (const response of octokit.paginate.iterator(octokit.rest.actions.listWorkflowRuns, {
370380
owner,
371381
repo,
@@ -375,6 +385,7 @@ export async function getArtifactsForBranchAndWorkflow(octokit, { owner, repo, w
375385
per_page: DEFAULT_PAGE_LIMIT,
376386
event: 'push',
377387
})) {
388+
console.log(response);
378389
if (!response.data.length) {
379390
core.warning(`Workflow ${workflow_id} not found in branch ${branch}`);
380391
core.endGroup();

0 commit comments

Comments
 (0)