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
68c82dbc51
commit
af2109e0d8
1 changed files with 8 additions and 8 deletions
16
curl.sh
16
curl.sh
|
@ -3,14 +3,14 @@
|
||||||
# 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 NAME="myEvent"
|
echo CONTEXT="$CONTEXT"
|
||||||
echo STATUS="success"
|
|
||||||
echo SHA="$SHA"
|
echo SHA="$SHA"
|
||||||
|
echo STATUS="$STATUS"
|
||||||
echo GITHUB_TOKEN="$GITHUB_TOKEN"
|
echo GITHUB_TOKEN="$GITHUB_TOKEN"
|
||||||
|
|
||||||
/usr/bin/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 $GITHUB_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":"$NAME", "head_sha":"$SHA", "status":"completed", "conclusion":"success"}'
|
-d '{"name":"$CONTEXT", "head_sha":"$SHA", "status":"completed", "conclusion":"$STATUS"}'
|
||||||
|
|
Loading…
Reference in a new issue