commit 481a22dad4f551a9dbd6d139cb749637e8d6edee
parent f6cf0a64b07bd50076ed49d70898435dc6d6da03
Author: Suzanne Soy <jsmaniac.github@suzanne.soy>
Date: Wed, 28 Jul 2021 15:44:53 +0100
Try to get the Github Actions to register as a Status check
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
@@ -91,7 +91,9 @@ jobs:
run: if $COV; then raco cover -s main -s test -s doc -f codecov -f html -d ~/coverage . || true; fi
# TODO: add an option to cover to run the "outer" module too, not just the submodules.
# TODO: deploy the coverage info.
-
+ status-check:
+ needs: build
+ steps:
- name: Create status check
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -102,5 +104,5 @@ jobs:
-X POST \
-H "Authorization: Bearer $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
- https://api.github.com/repos/${github.repository}/check-runs \
+ https://api.github.com/repos/${{github.repository}}/check-runs \
-d '{"name":"build", "head_sha": "'"$BUILD_COMMIT"'", "status": "completed", "conclusion": "success" }'