Skip to content

Commit 150004e

Browse files
committed
debug it...
1 parent 36f545c commit 150004e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

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

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

364364
// Do not allow downloading artifacts from a fork.
365-
completedWorkflowRuns.push(
366-
...response.data.filter(workflowRun => workflowRun.head_repository.full_name === `${owner}/${repo}`),
367-
);
365+
const filtered = response.data.filter(workflowRun => workflowRun.head_repository.full_name === `${owner}/${repo}`);
366+
367+
console.log(JSON.stringify(filtered, null, 2));
368+
369+
completedWorkflowRuns.push(...filtered);
368370

369371
if (completedWorkflowRuns.length) {
370372
break;

0 commit comments

Comments
 (0)