diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 93c79fe6..95df8b11 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -40,3 +40,33 @@ 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] + 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 + 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>"