Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
ci: Only attempt to post the failure if we have a key.
Alex Vandiver2283a1647634
diff --git a/.circleci/config.yml b/.circleci/config.ymlindex 816753e8355..1b99b6a04ce 100644--- a/.circleci/config.yml+++ b/.circleci/config.yml@@ -159,7 +159,7 @@ aliases:branches:only: mastercommand: |- if [[ "$CIRCLE_REPOSITORY_URL" == "[email protected]:zulip/zulip.git" ]]; then+ if [[ "$CIRCLE_REPOSITORY_URL" == "[email protected]:zulip/zulip.git" && "$ZULIP_BOT_KEY" != "" ]]; thencurl -H "Content-Type: application/json" \-X POST -i 'https://chat.zulip.org/api/v1/external/circleci?api_key='"$ZULIP_BOT_KEY"'&stream=automated%20testing&topic=master%20failing' \-d '{"payload": { "branch": "'"$CIRCLE_BRANCH"'", "reponame": "'"$CIRCLE_PROJECT_REPONAME"'", "status": "failed", "build_url": "'"$CIRCLE_BUILD_URL"'", "username": "'"$CIRCLE_USERNAME"'"}}'