From 5bc0ad78bcff9258e55a7f6d3e3fae165ff1d3dd Mon Sep 17 00:00:00 2001 From: Agustin Isasmendi Date: Thu, 25 Jan 2024 15:53:56 +0100 Subject: [PATCH] Test job summary --- src/services/report.service.ts | 60 ++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/src/services/report.service.ts b/src/services/report.service.ts index 91a91b2..b5e7be8 100644 --- a/src/services/report.service.ts +++ b/src/services/report.service.ts @@ -1,4 +1,5 @@ import { Licenses } from './result.service'; +import * as core from '@actions/core'; export function getLicensesReport(licenses: Licenses[]): string { let markdownTable = '| License | Copyleft | URL |\n'; @@ -11,3 +12,62 @@ export function getLicensesReport(licenses: Licenses[]): string { return markdownTable; } + +const html = ` + + + + + + + +
+ + + + + + +`; +export async function getJobSummary() { + await core.summary.addRaw(html).write(); +}