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 ae99a05 commit e1c59da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/buildSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export function getWorkflowStepNames(repository: string) {

export async function getWorkflowRunJobs(owner: string, repo: string, runId: string) {
// Replace with your GitHub personal access token
console.log(process.env.GITHUB_TOKEN);
const octokit = new Octokit({
auth: process.env.GITHUB_TOKEN,
});
Expand All @@ -105,8 +106,9 @@ export async function getWorkflowRunJobs(owner: string, repo: string, runId: str
});

// Iterate over the jobs and log the step names
console.log(response);
const jobs = response.data.jobs;
console.log(jobs);

} catch (error) {
console.error(error);
}
Expand Down

0 comments on commit e1c59da

Please sign in to comment.