Skip to content

Commit

Permalink
Updated as per review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nbhoski committed Jun 26, 2024
1 parent 4cd6195 commit d78fddf
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/buildSummary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,14 @@ export async function processAndDisplayBuildSummary() {
const runnerTemp = process.env.RUNNER_TEMP;
let filePath: string;

if (!runId) {
try {

if (!runId) {
filePath = join(runnerTemp as string, `buildSummary_.json`);
} else {
} else {
filePath = join(runnerTemp as string, `buildSummary_${runId as string}.json`);
}
}

try {
const data = await readJsonFile(filePath);
const taskSummaryTableRows = getBuildSummaryTable(data);
writeSummary(taskSummaryTableRows);
Expand Down

0 comments on commit d78fddf

Please sign in to comment.