From 4331b2052f334a0b6ccff293b4b11f10ccce99b7 Mon Sep 17 00:00:00 2001 From: Bolaji Olajide <25608335+BolajiOlajide@users.noreply.github.com> Date: Wed, 8 May 2024 19:22:19 +0100 Subject: [PATCH] release: remove slack webhook requirement (#62556) * remove slack webhook dependency * update ci webhook vars --- release.yaml | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/release.yaml b/release.yaml index 0cc02ee52ef9a..8b5252de10c2a 100644 --- a/release.yaml +++ b/release.yaml @@ -11,26 +11,12 @@ requirements: - name: "jq" cmd: "jq --help" - name: "Buidkite access token" + # `write_builds` permission is all that's needed here + # You also need to ensure you add access to the Sourcegraph organization on Buildkite. env: BUILDKITE_ACCESS_TOKEN only: # We only need this to create CI builds. - internal.create - promoteToPublic.create - # `write_builds` permission is all that's needed here - # You also need to ensure you add access to the Sourcegraph organization on Buildkite. - - # announce-engineering slack webhook url: - # https://start.1password.com/open/i?a=HEDEDSLHPBFGRBTKAKJWE23XX4&v=dnrhbauihkhjs5ag6vszsme45a&i=pldpna5vivapxe4phewnqd42ji&h=team-sourcegraph.1password.com - - name: 'Slack Webhook URL' - env: SLACK_WEBHOOK_URL - only: - - promoteToPublic.finalize - - # team-cloud-ops slack webhook url: - # https://start.1password.com/open/i?a=HEDEDSLHPBFGRBTKAKJWE23XX4&v=dnrhbauihkhjs5ag6vszsme45a&i=xwwpaakz5iajowr2fruueoevba&h=team-sourcegraph.1password.com - - name: 'Slack Webhook URL Cloud Ops' - env: SLACK_WEBHOOK_URL_CLOUD_OPS - only: - - promoteToPublic.finalize internal: create: @@ -282,7 +268,7 @@ promoteToPublic: echo "Posting slack notification for release" tag="{{tag}}" changelog_version="${tag//./}" - webhooks=("$SLACK_WEBHOOK_URL" "$SLACK_WEBHOOK_URL_CLOUD_OPS") + webhooks=("$ANNOUNCE_ENG_SLACK_WEBHOOK_URL" "$CLOUD_OPS_SLACK_WEBHOOK_URL") for webhook in "${webhooks[@]}" do body=$(wget --content-on-error -O- --header="Content-Type: application/json" --post-data '{