Skip to content

Commit 27b97ad

Browse files
Fix/output (#143)
1 parent 8cada18 commit 27b97ad

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

.github/workflows/build-and-test.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,4 +293,4 @@ jobs:
293293
- name: Modify reports
294294
run: npm run modify-reports
295295
- name: Default tables
296-
run: node dist/core/cli.js ctrf-reports/ctrf-report.json --title "Default tables" --annotate false
296+
run: node dist/core/cli.js ctrf-reports/ctrf-report.json --title "Default tables" --annotate false

action.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ inputs:
221221

222222
outputs:
223223
summary:
224-
description: 'The markdown summary generated from the test report.'
224+
description: 'The markdown summary generated'
225225

226226
runs:
227227
using: 'node20'

badges/coverage.svg

+1-1
Loading

dist/index.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/github/handler.ts

+3
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export async function handleViewsAndComments(
3535

3636
generateViews(inputs, report)
3737

38+
core.setOutput('summary', core.summary.stringify())
39+
3840
if (shouldAddCommentToPullRequest(inputs, report)) {
3941
await postOrUpdatePRComment(inputs, INVISIBLE_MARKER)
4042
}
@@ -50,6 +52,7 @@ export async function handleViewsAndComments(
5052
if (inputs.summary && !inputs.pullRequestReport) {
5153
await core.summary.write()
5254
}
55+
5356
core.endGroup()
5457
}
5558

0 commit comments

Comments
 (0)