mirror of
https://github.com/zhigang1992/actions.git
synced 2026-01-12 17:12:24 +08:00
Update header so one can send statuses
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
#
|
||||
|
||||
BASEDIR=$(dirname "$0")
|
||||
DEPLOYMENT_ID=$("${BASEDIR}"/deployment-get-id)
|
||||
#DEPLOYMENT_ID=$("${BASEDIR}"/deployment-get-id)
|
||||
GITHUB_URL="https://github.com"
|
||||
GITHUB_API_URL="https://api.github.com"
|
||||
|
||||
@@ -23,6 +23,7 @@ curl --silent --show-error --fail \
|
||||
-X POST "${GITHUB_API_URL}/repos/${GITHUB_REPOSITORY}/deployments/${DEPLOYMENT_ID}/statuses" \
|
||||
-H "Authorization: token ${GITHUB_TOKEN}" \
|
||||
-H "Content-Type: text/json; charset=utf-8" \
|
||||
-H "Accept: application/vnd.github.flash-preview+json" \
|
||||
-d @- <<EOF
|
||||
{
|
||||
"state": "${DEPLOY_STATE}",
|
||||
|
||||
Reference in New Issue
Block a user