Skip to content

Commit dc4fd7c

Browse files
committed
EVEN MORE debug
1 parent e7d0539 commit dc4fd7c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ export async function getArtifactsForBranchAndWorkflow(octokit, { owner, repo, w
352352
}
353353

354354
if (!repositoryWorkflow) {
355-
core.debug(
355+
core.info(
356356
`Unable to find workflow with name "${workflowName}" in the repository. Found workflows: ${allWorkflows.join(
357357
', ',
358358
)}`,
@@ -368,7 +368,7 @@ export async function getArtifactsForBranchAndWorkflow(octokit, { owner, repo, w
368368
const completedWorkflowRuns = [];
369369

370370
core.info('Get runs for:');
371-
core.info({
371+
console.log({
372372
workflow_id,
373373
branch,
374374
status: 'success',
@@ -385,7 +385,7 @@ export async function getArtifactsForBranchAndWorkflow(octokit, { owner, repo, w
385385
per_page: DEFAULT_PAGE_LIMIT,
386386
event: 'push',
387387
})) {
388-
console.log(response);
388+
console.log('response', response.data.length);
389389
if (!response.data.length) {
390390
core.warning(`Workflow ${workflow_id} not found in branch ${branch}`);
391391
core.endGroup();
@@ -412,7 +412,7 @@ export async function getArtifactsForBranchAndWorkflow(octokit, { owner, repo, w
412412

413413
// Search through workflow artifacts until we find a workflow run w/ artifact name that we are looking for
414414
for (const workflowRun of completedWorkflowRuns) {
415-
core.debug(`Checking artifacts for workflow run: ${workflowRun.html_url}`);
415+
core.info(`Checking artifacts for workflow run: ${workflowRun.html_url}`);
416416

417417
const {
418418
data: { artifacts },
@@ -423,13 +423,13 @@ export async function getArtifactsForBranchAndWorkflow(octokit, { owner, repo, w
423423
});
424424

425425
if (!artifacts) {
426-
core.debug(
426+
core.info(
427427
`Unable to fetch artifacts for branch: ${branch}, workflow: ${workflow_id}, workflowRunId: ${workflowRun.id}`,
428428
);
429429
} else {
430430
const foundArtifact = artifacts.find(({ name }) => name === artifactName);
431431
if (foundArtifact) {
432-
core.debug(`Found suitable artifact: ${foundArtifact.url}`);
432+
core.info(`Found suitable artifact: ${foundArtifact.url}`);
433433
return {
434434
artifact: foundArtifact,
435435
workflowRun,

0 commit comments

Comments
 (0)