File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,18 @@ jobs:
4343 else
4444 echo "No open pull request found for this branch."
4545 fi
46+ - name : find if coverage report is already present
47+ uses : peter-evans/find-comment@v3
48+ id : fc
49+ with :
50+ issue-number : ${{ env.pull_request_id }}
51+ comment-author : ' github-actions[bot]'
52+ body-includes : ' Total test coverage: '
4653 - name : post coverage report
4754 uses : peter-evans/create-or-update-comment@v4
4855 with :
4956 token : ${{ secrets.GITHUB_TOKEN }}
5057 issue-number : ${{ env.pull_request_id }}
51- body : ' ```${{ fromJSON(steps.coverage.outputs.report) }}```'
58+ comment-id : ${{ steps.fc.outputs.comment-id }}
59+ body : ' ```\n${{ fromJSON(steps.coverage.outputs.report) }}\n```'
5260 edit-mode : replace
You can’t perform that action at this time.
0 commit comments