Skip to content

Commit 8c48805

Browse files
committed
#19: Added documentation how to publish Markdown results in GitHub
1 parent 6b06171 commit 8c48805

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,15 @@ Use the online [configuration tool](https://reportgenerator.io/usage) to get sta
3636
with:
3737
name: CoverageReport # Artifact name
3838
path: coveragereport # Directory containing files to upload
39+
40+
- name: Add comment to PR # Only applicable if 'MarkdownSummaryGithub' or one of the other Markdown report types is generated
41+
if: github.event_name == 'pull_request'
42+
run: gh pr comment $PR_NUMBER --body-file coveragereport/SummaryGithub.md # Adjust path and filename if necessary
43+
env:
44+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
PR_NUMBER: ${{ github.event.number }}
46+
47+
- name: Publish coverage in build summary # Only applicable if 'MarkdownSummaryGithub' or one of the other Markdown report types is generated
48+
run: cat coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY # Adjust path and filename if necessary
49+
shell: bash
3950
```

0 commit comments

Comments
 (0)