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);