Skip to content

Commit b755c6d

Browse files
committed
Use <details>/<summary> for VirusTotal Analysis in release notes
1 parent 9627a1f commit b755c6d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/virustotal.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,16 @@ jobs:
120120
core.warning('No valid analysis lines found, skipping update.');
121121
return;
122122
}
123-
const newBody = originalBody.replace(/[\r\n]+$/, '') + `\n\n${MARKER_START}\n## VirusTotal Analysis\n\n${detailsLines.join('\n')}\n\n${MARKER_END}\n`;
123+
const newBody = originalBody.replace(/[\r\n]+$/, '') + '\n\n' + [
124+
MARKER_START,
125+
'<details>',
126+
'<summary>VirusTotal Analysis</summary>',
127+
'',
128+
detailsLines.join('\n'),
129+
'</details>',
130+
MARKER_END,
131+
''
132+
].join('\n');
124133
core.startGroup('New release body');
125134
console.log(newBody);
126135
core.endGroup();

0 commit comments

Comments
 (0)