From 98143e12a87246223f2268408ae60f2aa1153722 Mon Sep 17 00:00:00 2001 From: Suzanne Soy Date: Wed, 28 Jul 2021 15:35:34 +0100 Subject: [PATCH] Try to get the Github Actions to register as a Status check --- .github/workflows/ci.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e43a86b..d8daf82 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -92,3 +92,14 @@ jobs: # TODO: add an option to cover to run the "outer" module too, not just the submodules. # 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" }'