From 109f44a635fb48f58200b7ebec69b8c3ba8439f4 Mon Sep 17 00:00:00 2001 From: Nikhil Bhoski <47204011+nbhoski@users.noreply.github.com> Date: Thu, 13 Jun 2024 14:19:12 +0530 Subject: [PATCH] Added octokit parser --- src/buildSummary.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/buildSummary.ts b/src/buildSummary.ts index 51d99fe..0098a0c 100644 --- a/src/buildSummary.ts +++ b/src/buildSummary.ts @@ -102,13 +102,13 @@ export async function getWorkflowRunJobs(owner: string, repo: string, runID: str }); try { // Fetch the jobs for the specified workflow run - const response = await octokit.actions.listJobsForWorkflowRun({ + const response = await octokit.actions.getWorkflowRun({ owner, repo, runID, }); - const contentEncoded = response; + const contentEncoded = response.data.jobs; //const contentDecoded = Buffer.from(contentEncoded, 'base64').toString('utf-8'); // Iterate over the jobs and log the step names console.log(contentEncoded);