Try to get the Github Actions to register as a Status check
This commit is contained in:
parent
1a4079f394
commit
98143e12a8
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
@ -92,3 +92,14 @@ jobs:
|
||||||
# TODO: add an option to cover to run the "outer" module too, not just the submodules.
|
# TODO: add an option to cover to run the "outer" module too, not just the submodules.
|
||||||
# TODO: deploy the coverage info.
|
# TODO: deploy the coverage info.
|
||||||
|
|
||||||
|
- name: Create status check
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
run: |
|
||||||
|
BUILD_COMMIT=$(git rev-parse HEAD)
|
||||||
|
curl \
|
||||||
|
-X POST \
|
||||||
|
-H "Authorization: Bearer $GITHUB_TOKEN" \
|
||||||
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
|
https://api.github.com/repos/{org}/{repo}/check-runs \
|
||||||
|
-d '{"name":"build", "head_sha": "'"$BUILD_COMMIT"'", "status": "completed", "conclusion": "success" }'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user