Skip to content

Commit bc4d1e5

Browse files
Get coverage from Github env
1 parent d22c338 commit bc4d1e5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/coverage.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
- feature/* # TODO: Remove it
55
- develop
66
- main
7+
env:
8+
# Setting an environment variable with the value of a configuration variable
9+
env_var: ${{ vars.ENV_CONTEXT_VAR }}
710

811
jobs:
912
coverage:
@@ -28,4 +31,4 @@ jobs:
2831
-H "Authorization: Bearer $GH_TOKEN"\
2932
-H "X-GitHub-Api-Version: 2022-11-28" \
3033
https://api.github.com/repos/${{ github.repository }}/check-runs \
31-
-d '{"name":"Coverage ratio", "head_sha":"${{ github.event.pull_request.head.sha }}", "status":"completed", "conclusion":"success","output":{"title":"$COVERAGE}", "summary":""}}'
34+
-d '{"name":"Coverage ratio", "head_sha":"${{ github.event.pull_request.head.sha }}", "status":"completed", "conclusion":"success","output":{"title":"${{env.COVERAGE}}", "summary":""}}'

0 commit comments

Comments
 (0)