diff --git a/src/buildSummary.ts b/src/buildSummary.ts index 92ab07d..86aabc5 100644 --- a/src/buildSummary.ts +++ b/src/buildSummary.ts @@ -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); +}