From 3666511c0157b7040c7ce234561bb77db456fe7d Mon Sep 17 00:00:00 2001 From: Nicholas McDonnell <50747025+mcdonnnj@users.noreply.github.com> Date: Thu, 5 Dec 2024 06:05:27 -0500 Subject: [PATCH] Fix the job summary table example This updates the example of adding a table to a job summary using core.summary.addTable() to be correct. It also changes the data row to use strings instead of objects to show both ways that cell data can be defined. This mirrors the job summary announcement blog post. --- packages/core/README.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/core/README.md b/packages/core/README.md index ac8ced92bb..4d96f9d283 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -451,17 +451,17 @@ For example ```typescript const tableData = [ - {data: 'Header1', header: true}, - {data: 'Header2', header: true}, - {data: 'Header3', header: true}, - {data: 'MyData1'}, - {data: 'MyData2'}, - {data: 'MyData3'} + [ + {data: 'Header1', header: true}, + {data: 'Header2', header: true}, + {data: 'Header3', header: true} + ], + ['MyData1', 'MyData2', 'MyData3'] ] // Add an HTML table -core.summary.addTable([tableData]) -// Output:
Header1Header2Header3
MyData1MyData2MyData3
+core.summary.addTable(tableData) +// Output:
Header1Header2Header3
MyData1MyData2MyData3
```