diff --git a/src/buildSummary.ts b/src/buildSummary.ts index 5308831..2be1de6 100644 --- a/src/buildSummary.ts +++ b/src/buildSummary.ts @@ -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, }); @@ -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); }