Update header so one can send statuses

This commit is contained in:
Andreas Heim
2019-06-05 15:08:37 -04:00
parent 82abdf2503
commit cecb9cdd25

View File

@@ -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}",