From cecb9cdd25fef2b31589ed1cac5473709caff714 Mon Sep 17 00:00:00 2001 From: Andreas Heim Date: Wed, 5 Jun 2019 15:08:37 -0400 Subject: [PATCH] Update header so one can send statuses --- github-deploy/bin/deployment-create-status | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/github-deploy/bin/deployment-create-status b/github-deploy/bin/deployment-create-status index 09a02a4..3eb005b 100755 --- a/github-deploy/bin/deployment-create-status +++ b/github-deploy/bin/deployment-create-status @@ -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 @- <