From 19eac0dc8dd4df893cde489f0dd81484b5c3354f Mon Sep 17 00:00:00 2001 From: Nikhil Bhoski <47204011+nbhoski@users.noreply.github.com> Date: Thu, 13 Jun 2024 12:00:53 +0530 Subject: [PATCH] Added octokit parser --- src/buildSummary.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/buildSummary.ts b/src/buildSummary.ts index 0d3da2e..619447a 100644 --- a/src/buildSummary.ts +++ b/src/buildSummary.ts @@ -107,10 +107,10 @@ export async function getWorkflowRunJobs(owner: string, repo: string, runId: str // Iterate over the jobs and log the step names const jobs = response.data.jobs; jobs.forEach((jobs as string) => { - console.log(`Job: ${jobs.name}`), - job.steps.forEach((step as string) => { - console.log(` **Step: ${step.name}`), - console.log(` **Uses: ${step.uses}`), + console.log(`Job: ${jobs.name}`); + jobs.steps.forEach((step as string) => { + console.log(` **Step: ${step.name}`); + console.log(` **Uses: ${step.uses}`); }); }); } catch (error) {