From 481a22dad4f551a9dbd6d139cb749637e8d6edee Mon Sep 17 00:00:00 2001 From: Suzanne Soy Date: Wed, 28 Jul 2021 15:44:53 +0100 Subject: [PATCH] Try to get the Github Actions to register as a Status check --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dc6ed1a..625bd77 100644 --- 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" }'