Skip to content

Commit d84389f

Browse files
Start coverage in title
1 parent 5d6b37f commit d84389f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,11 @@ jobs:
2020
- name: Create Check Run
2121
env:
2222
GH_TOKEN: ${{ github.token }}
23+
COVERAGE: cat /tmp/coverage.out | grep "Global test coverage"
2324
run: |
2425
curl -L -X POST \
2526
-H "Accept: application/vnd.github+json" \
2627
-H "Authorization: Bearer $GH_TOKEN"\
2728
-H "X-GitHub-Api-Version: 2022-11-28" \
2829
https://api.github.com/repos/${{ github.repository }}/check-runs \
29-
-d '{"name":"Coverage", "head_sha":"${{ github.event.pull_request.head.sha }}", "status":"completed", "conclusion":"success","output":{"title":"A Mighty title", "summary":""}}'
30+
-d '{"name":"Coverage", "head_sha":"${{ github.event.pull_request.head.sha }}", "status":"completed", "conclusion":"success","output":{"title":"$COVERAGE", "summary":""}}'

0 commit comments

Comments
 (0)