Skip to content

Commit

Permalink
Added octokit parser
Browse files Browse the repository at this point in the history
  • Loading branch information
nbhoski committed Jun 13, 2024
1 parent e5f52d3 commit 109f44a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/buildSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 109f44a

Please sign in to comment.