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