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
|
||||
# for a commit sha
|
||||
|
||||
echo NAME="myEvent"
|
||||
echo STATUS="success"
|
||||
echo CONTEXT="$CONTEXT"
|
||||
echo SHA="$SHA"
|
||||
echo STATUS="$STATUS"
|
||||
echo GITHUB_TOKEN="$GITHUB_TOKEN"
|
||||
|
||||
/usr/bin/curl \
|
||||
-X POST \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
-H "Authorization: Bearer $GITHUB_TOKEN" \
|
||||
https://api.github.com/repos/jstan-isch/spring-petclinic/check-runs \
|
||||
-d '{"name":"$NAME", "head_sha":"$SHA", "status":"completed", "conclusion":"success"}'
|
||||
curl \
|
||||
-X POST \
|
||||
-H "Accept: application/vnd.github+json" \
|
||||
-H "Authorization: Bearer $GITHUB_TOKEN" \
|
||||
https://api.github.com/repos/jstan-isch/spring-petclinic/check-runs \
|
||||
-d '{"name":"$CONTEXT", "head_sha":"$SHA", "status":"completed", "conclusion":"$STATUS"}'
|
||||
|
|
Loading…
Reference in a new issue