Skip to content

Commit

Permalink
Add action to comment on PR (#8)
Browse files Browse the repository at this point in the history
* Add action to comment on PR

* Allow repeats
  • Loading branch information
jtx1999 authored May 24, 2021
1 parent 2db3d02 commit 101f130
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build
name: Report coverage

on:
push:
Expand Down Expand Up @@ -40,3 +40,13 @@ jobs:
run: |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"
- name: Add comment to PR
uses: mshick/add-pr-comment@v1
if: ${{ github.event_name == 'pull_request' }}
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
allow-repeats: true
message: 'Statement coverage = ${{ steps.jacoco.outputs.coverage }}
Branch coverage = ${{ steps.jacoco.outputs.branches }}'

0 comments on commit 101f130

Please sign in to comment.