From 23236e5aa89a14d8d1a69a773b5e97b9f08cc368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20H=C3=A4ring?= Date: Thu, 24 Jul 2025 09:51:50 +0200 Subject: [PATCH] feat: collapse toggle for summary --- lib/job-summary.js | 6 +++++- src/job-summary.ts | 8 +++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/job-summary.js b/lib/job-summary.js index aa42d2c79..252385b5d 100644 --- a/lib/job-summary.js +++ b/lib/job-summary.js @@ -247,7 +247,11 @@ class JobSummary { }); } static wrapContent(fileContent) { - return this.getMarkdownHeader() + fileContent + this.getMarkdownFooter(); + return ('
\n\nJFrog Job Summary\n\n' + + this.getMarkdownHeader() + + fileContent + + this.getMarkdownFooter() + + '\n\n
'); } static getMarkdownFooter() { return `${this.getUsageBadge()} \n\n # \n\n The above Job Summary was generated by the Setup JFrog CLI GitHub Action `; diff --git a/src/job-summary.ts b/src/job-summary.ts index deb2b57b2..34e7cdd25 100644 --- a/src/job-summary.ts +++ b/src/job-summary.ts @@ -251,7 +251,13 @@ export class JobSummary { } private static wrapContent(fileContent: string) { - return this.getMarkdownHeader() + fileContent + this.getMarkdownFooter(); + return ( + '
\n\nJFrog Job Summary\n\n' + + this.getMarkdownHeader() + + fileContent + + this.getMarkdownFooter() + + '\n\n
' + ); } private static getMarkdownFooter() {