mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-29 18:55:49 +00:00
Update curl.sh
This commit is contained in:
parent
f3d5127a53
commit
f1a862ab3e
1 changed files with 11 additions and 6 deletions
17
curl.sh
17
curl.sh
|
@ -3,14 +3,19 @@
|
||||||
# Github app uses this script to create check runs
|
# Github app uses this script to create check runs
|
||||||
# for a commit sha
|
# for a commit sha
|
||||||
|
|
||||||
echo CONTEXT="$CONTEXT"
|
echo PR_CONTEXT="$CONTEXT"
|
||||||
echo SHA="$SHA"
|
echo COMMIT_SHA="$SHA"
|
||||||
echo STATUS="$STATUS"
|
echo PR_STATUS="$STATUS"
|
||||||
echo GITHUB_TOKEN="$GITHUB_TOKEN"
|
echo TOKEN="$GITHUB_TOKEN"
|
||||||
|
|
||||||
|
PR_CONTEXT="$CONTEXT"
|
||||||
|
COMMIT_SHA="$SHA"
|
||||||
|
PR_STATUS="$STATUS"
|
||||||
|
TOKEN="$GITHUB_TOKEN"
|
||||||
|
|
||||||
curl \
|
curl \
|
||||||
-X POST \
|
-X POST \
|
||||||
-H "Accept: application/vnd.github+json" \
|
-H "Accept: application/vnd.github+json" \
|
||||||
-H "Authorization: Bearer ${GITHUB_TOKEN}" \
|
-H "Authorization: Bearer ${TOKEN}" \
|
||||||
https://api.github.com/repos/jstan-isch/spring-petclinic/check-runs \
|
https://api.github.com/repos/jstan-isch/spring-petclinic/check-runs \
|
||||||
-d '{"name":"${CONTEXT}", "head_sha":"${SHA}", "status":"completed", "conclusion":"${STATUS}"}'
|
-d '{"name":"${PR_CONTEXT}", "head_sha":"${COMMIT_SHA}", "status":"completed", "conclusion":"${PR_STATUS}"}'
|
||||||
|
|
Loading…
Reference in a new issue