diff --git a/.github/workflows/demo-job-summary.yml b/.github/workflows/demo-job-summary.yml index b56d748..5d4af5b 100644 --- a/.github/workflows/demo-job-summary.yml +++ b/.github/workflows/demo-job-summary.yml @@ -25,7 +25,7 @@ jobs: run: ./gradlew assemble - name: Build kotlin-dsl project without build scan working-directory: .github/workflow-samples/kotlin-dsl - run: ./gradlew check --no-scan + run: ./gradlew assemble check --no-scan - name: Build kotlin-dsl project with build scan publish failure working-directory: .github/workflow-samples/kotlin-dsl run: ./gradlew check -Dgradle.enterprise.url=https://not.valid.server diff --git a/src/job-summary.ts b/src/job-summary.ts index bc19f2b..1def3a8 100644 --- a/src/job-summary.ts +++ b/src/job-summary.ts @@ -44,23 +44,29 @@ export function loadBuildResults(): BuildResult[] { function writeSummaryTable(results: BuildResult[]): void { core.summary.addHeading('Gradle Builds', 3) - core.summary.addTable([ - [ - {data: 'Root Project', header: true}, - {data: 'Tasks', header: true}, - {data: 'Gradle Version', header: true}, - {data: 'Outcome', header: true}, - {data: 'Build Scan™', header: true} - ], - ...results.map(result => [ - result.rootProjectName, - result.requestedTasks, - result.gradleVersion, - renderOutcome(result), - renderBuildScan(result) - ]) - ]) - core.summary.addRaw('\n') + + core.summary.addRaw(` +
Root Project | +Requested Tasks | +Gradle Version | +Build Outcome | +Build Scan™ | +
---|