commit f6cf0a64b07bd50076ed49d70898435dc6d6da03
parent 98143e12a87246223f2268408ae60f2aa1153722
Author: Suzanne Soy <jsmaniac.github@suzanne.soy>
Date: Wed, 28 Jul 2021 15:41:37 +0100
Try to get the Github Actions to register as a Status check
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
@@ -96,10 +96,11 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
+ set -x
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 \
+ https://api.github.com/repos/${github.repository}/check-runs \
-d '{"name":"build", "head_sha": "'"$BUILD_COMMIT"'", "status": "completed", "conclusion": "success" }'