Skip to content

Commit

Permalink
#19: Added documentation how to publish Markdown results in GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpalme committed May 15, 2024
1 parent 6b06171 commit 8c48805
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,15 @@ Use the online [configuration tool](https://reportgenerator.io/usage) to get sta
with:
name: CoverageReport # Artifact name
path: coveragereport # Directory containing files to upload

- name: Add comment to PR # Only applicable if 'MarkdownSummaryGithub' or one of the other Markdown report types is generated
if: github.event_name == 'pull_request'
run: gh pr comment $PR_NUMBER --body-file coveragereport/SummaryGithub.md # Adjust path and filename if necessary
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PR_NUMBER: ${{ github.event.number }}

- name: Publish coverage in build summary # Only applicable if 'MarkdownSummaryGithub' or one of the other Markdown report types is generated
run: cat coveragereport/SummaryGithub.md >> $GITHUB_STEP_SUMMARY # Adjust path and filename if necessary
shell: bash
```

0 comments on commit 8c48805

Please sign in to comment.