From 59235c5ccf4d91b92bd450c46ca9048e7df99254 Mon Sep 17 00:00:00 2001 From: Chuck Reeves Date: Thu, 17 Apr 2025 16:17:09 -0400 Subject: [PATCH 1/2] build: adding slack notifications --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 93c79fe6..3bc41a09 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,3 +40,31 @@ jobs: RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}} - name: Publish Gem run: rake publish_gem + notify-release: + runs-on: ubuntu-latest + name: Notify Release + strategy: + matrix: + url: [SLACK_WEBHOOK_ASK_DEVREL_URL, SLACK_WEBHOOK_DEVREL_TOOLING_URL, SLACK_WEBHOOK_DEVREL_PRIVATE_URL, SLACK_WEBHOOK_COMMUNITY] + steps: + - name: Send to slack channels + uses: slackapi/slack-github-action@v2.0.0 + with: + webhook: ${{ secrets[matrix.url]}} + webhook-type: incoming-webhook + errors: true + payload: | + blocks: + - type: "header" + text: + type: "plain_text" + text: ":initial_external_notification_sent: :ruby: Version ${{ github.event.release.name }} of the Ruby SDK has been released" + - type: "section" + text: + type: "mrkdwn" + text: "${{ github.event.release.body }}" + - type: "divider" + - type: "section" + text: + type: "mrkdwn" + text: "You can view the full change log <${{github.event.release.html_url }}|here>" From 9d26cea918727f424d60d9281599be681281baff Mon Sep 17 00:00:00 2001 From: Chuck Reeves Date: Thu, 24 Apr 2025 08:32:20 -0400 Subject: [PATCH 2/2] build: remove community slack --- .github/workflows/release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3bc41a09..95df8b11 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -45,10 +45,12 @@ jobs: name: Notify Release strategy: matrix: - url: [SLACK_WEBHOOK_ASK_DEVREL_URL, SLACK_WEBHOOK_DEVREL_TOOLING_URL, SLACK_WEBHOOK_DEVREL_PRIVATE_URL, SLACK_WEBHOOK_COMMUNITY] + url: [SLACK_WEBHOOK_ASK_DEVREL_URL, SLACK_WEBHOOK_DEVREL_TOOLING_URL, SLACK_WEBHOOK_DEVREL_PRIVATE_URL] steps: - name: Send to slack channels uses: slackapi/slack-github-action@v2.0.0 + if: always(); + continue-on-error: true with: webhook: ${{ secrets[matrix.url]}} webhook-type: incoming-webhook