Skip to content

Commit 36398d3

Browse files
committed
fix: output the actual PR comment in comment-content
1 parent 2031cfc commit 36398d3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ async function run(): Promise<void> {
244244

245245
// include full summary in output; Actions will truncate if oversized
246246
let rendered = core.summary.stringify()
247-
core.setOutput('comment-content', rendered)
248247

249248
// Handle large summaries by uploading as artifact
250249
rendered = await handleLargeSummary(rendered)
@@ -257,6 +256,9 @@ async function run(): Promise<void> {
257256
rendered = minSummary
258257
}
259258

259+
// Set the actual PR comment as output (minimal version if too large for a comment on GitHub)
260+
core.setOutput('comment-content', rendered)
261+
260262
// update the PR comment if needed with the right-sized summary
261263
await commentPr(rendered, config, issueFound)
262264
} catch (error) {

0 commit comments

Comments
 (0)