diff --git a/.circleci/template.yml b/.circleci/template.yml index 10619fd9b0..257a2cc105 100644 --- a/.circleci/template.yml +++ b/.circleci/template.yml @@ -323,13 +323,6 @@ commands: when: always command: | tools/circle-publish-github-comment.sh - publish_github_summary_comment: - steps: - - run: - name: Publish a summary comment to GitHub - when: on_fail - command: | - tools/circle-publish-github-summary-comment.sh maybe_prepare_minio: steps: @@ -613,7 +606,6 @@ jobs: tail -100 _build/mim1/rel/mongooseim/log/mongooseim.log.1 - upload_results_to_aws - publish_github_comment - - publish_github_summary_comment dialyzer: executor: << parameters.executor >> diff --git a/tools/circle-publish-github-summary-comment.sh b/tools/circle-publish-github-summary-comment.sh deleted file mode 100755 index 4ec952a41b..0000000000 --- a/tools/circle-publish-github-summary-comment.sh +++ /dev/null @@ -1,35 +0,0 @@ -#!/usr/bin/env bash - -if [[ ! -f /tmp/ct_summary ]] ; then - echo 'File "/tmp/ct_summary" is not there, aborting.' - exit -fi - -if [ -z "$COMMENTER_GITHUB_TOKEN" ]; then - echo "\$COMMENTER_GITHUB_TOKEN is empty. Do nothing" - exit 0 -fi - -function make_body -{ - echo "[Build]($CIRCLE_BUILD_URL) on $CIRCLE_BRANCH / $PRESET" - if [ ! -z "$CIRCLE_PULL_REQUEST" ]; then - echo "PR $CIRCLE_PULL_REQUEST" - fi - cat /tmp/ct_summary -} - -REPO_SLUG="$CIRCLE_PROJECT_USERNAME/$CIRCLE_PROJECT_REPONAME" - -function post_new_comment -{ - POST_BODY=$(BODY_ENV="$BODY" jq -n '{body: env.BODY_ENV}') - curl -v -o /dev/null -i \ - -H "Authorization: token $COMMENTER_GITHUB_TOKEN" \ - -H "Content-Type: application/json" \ - -X POST -d "$POST_BODY" \ - https://api.github.com/repos/$REPO_SLUG/issues/3685/comments -} - -BODY=$(make_body) -post_new_comment