Skip to content

Commit a0fdecc

Browse files
committed
apply feedback on writing the summary
1 parent 1af74a5 commit a0fdecc

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

dist/index.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/annotator.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,17 +151,17 @@ export async function attachSummary(
151151
): Promise<void> {
152152
// Add summary text if provided
153153
if (summaryText) {
154-
await core.summary.addRaw(summaryText).write()
154+
core.summary.addRaw(summaryText)
155155
}
156156

157157
if (table.length > 0) {
158-
await core.summary.addTable(table).write()
158+
core.summary.addTable(table)
159159
}
160160
if (detailsTable.length > 1) {
161-
await core.summary.addTable(detailsTable).write()
161+
core.summary.addTable(detailsTable)
162162
}
163163
if (flakySummary.length > 1) {
164-
await core.summary.addTable(flakySummary).write()
164+
core.summary.addTable(flakySummary)
165165
}
166166

167167
// Add check links to the job summary if any checks were created
@@ -172,7 +172,7 @@ export async function attachSummary(
172172
core.summary.addList(links)
173173
}
174174
core.summary.addSeparator()
175-
core.summary.write()
175+
await core.summary.write()
176176
}
177177

178178
export function buildCommentIdentifier(checkName: string[]): string {

0 commit comments

Comments
 (0)