Skip to content

Commit 0424e46

Browse files
Start check-runs output title
1 parent f9cb327 commit 0424e46

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,13 @@ jobs:
2020
run: (npm run coverage 2>&1) | tee /tmp/coverage.out | cat
2121
- name: Check coverage
2222
run: cat /tmp/coverage.out | grep "Global test coverage"
23+
- name: Create Check Run
24+
env:
25+
GH_TOKEN: ${{ github.token }}
26+
run: |
27+
curl -L -X POST \
28+
-H "Accept: application/vnd.github+json" \
29+
-H "Authorization: Bearer $GH_TOKEN"\
30+
-H "X-GitHub-Api-Version: 2022-11-28" \
31+
https://api.github.com/repos/${{ github.repository }}/check-runs \
32+
-d '{"name":"A Mighty Test", "head_sha":"${{ github.event.pull_request.head.sha }}", "status":"in_progress","output":{"title":"A Mighty Summary"}}'

0 commit comments

Comments
 (0)