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 cbb5a58 commit 5ce2b9f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/buildSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,18 +70,24 @@ export async function processAndDisplayBuildSummary() {

try {
const runnerTemp = process.env.RUNNER_TEMP;
const repository = process.env.GITHUB_REPOSITORY;
const filePath = join(runnerTemp as string, `buildSummary_${runId as string}.json`);
const data = await readJsonFile(filePath);
const taskSummaryTableRows = getBuildSummaryTable(data);
writeSummary(taskSummaryTableRows);
//const repository = process.env.GITHUB_REPOSITORY;
console.log('JJJJJJJJJJJJJJJJJJJJJ*', process.env.GITHUB_REPOSITORY);
//getWorkflowStepNames();
getWorkflowStepNames(repository as string);
} catch (error) {
console.error('An error occurred while reading the build summary file or adding the build summary table:', error);
}
}


export function getWorkflowStepNames(repository: string) {
console.log('JJJJJJJJJJJJJJJJJJJJJ*', process.env.GITHUB_REPOSITORY);
const [owner, repo] = process.env.GITHUB_REPOSITORY.split('/');
console.log(owner);
console.log(repo);
const runId = process.env.GITHUB_RUN_ID
//getWorkflowRunJobs(owner as string, repo as string, runId as string);
}


0 comments on commit 5ce2b9f

Please sign in to comment.