Skip to content

Commit

Permalink
Try manual formating
Browse files Browse the repository at this point in the history
  • Loading branch information
WebDucer committed Jul 29, 2024
1 parent 656654d commit 98bbedb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
16 changes: 11 additions & 5 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

16 changes: 11 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,17 @@ export async function run(): Promise<void> {

// Set step summary, if requested
if (stepSummaryInput === 'true') {
core.summary
.addHeading('Coverage Summary')
.addRaw(`Overall coverage: **${overallCoverage}**`)
.addDetails('Detailed coverage', markdownTable)
.write()
const summary = `# Coverage Summary
Overall coverage: <strong>${overallCoverage}</strong>
<details><summary>Detailed coverage</summary>
${markdownTable}
</details>
`
core.summary.addRaw(summary).write()
}
} catch (error) {
// Fail the workflow run if an error occurs
Expand Down

0 comments on commit 98bbedb

Please sign in to comment.