From f94fad95eb92209e1cb0afc4de3cb888ee8895f7 Mon Sep 17 00:00:00 2001 From: Bradley Hilton Date: Thu, 28 May 2020 14:49:58 -0500 Subject: [PATCH] Submit a payload to the release service when a release happens --- .circleci/update-releases.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.circleci/update-releases.sh b/.circleci/update-releases.sh index 3d831115b441..d3500a3ce0e6 100644 --- a/.circleci/update-releases.sh +++ b/.circleci/update-releases.sh @@ -2,9 +2,9 @@ set -euvo pipefail IFS=$'\n\t' -curl -X POST \ --H "X-Update-Token: ${UPDATE_TOKEN}" \ -https://releases.rocket.chat/update +curl -H "Content-Type: application/json" -H "X-Update-Token: $UPDATE_TOKEN" -d \ + "{\"commit\": \"$CIRCLE_SHA1\", \"tag\": \"$CIRCLE_TAG\", \"branch\": \"$CIRCLE_BRANCH\", \"artifactName\": \"$ARTIFACT_NAME\", \"releaseType\": \"$RC_RELEASE\" }" \ + https://releases.rocket.chat/update # Makes build fail if the release isn't there curl --fail https://releases.rocket.chat/$RC_VERSION/info