From 75802a90fc9579db6ad196b411a9e97da79f7b38 Mon Sep 17 00:00:00 2001 From: Cory Rylan Date: Tue, 30 Jun 2026 12:30:30 -0500 Subject: [PATCH] chore(ci): add slack release hook Signed-off-by: Cory Rylan --- .github/workflows/slack.yml | 45 +++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/slack.yml diff --git a/.github/workflows/slack.yml b/.github/workflows/slack.yml new file mode 100644 index 000000000..1bfd54301 --- /dev/null +++ b/.github/workflows/slack.yml @@ -0,0 +1,45 @@ +name: Release Slack Notification + +on: + release: + types: [published] + +permissions: + contents: read + +jobs: + notify: + name: Notify Slack (${{ matrix.destination }}) + strategy: + fail-fast: false + matrix: + destination: [primary, ci] + runs-on: ubuntu-latest + env: + SLACK_PAYLOAD: | + text: "New Release ${{ github.event.release.tag_name }}" + blocks: + - type: section + text: + type: mrkdwn + text: | + *New Release* :rocket: + + <${{ github.event.release.html_url }}|${{ github.event.release.tag_name }}> + + + steps: + - name: Notify primary Slack channel + if: matrix.destination == 'primary' + uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c + with: + webhook: ${{ secrets.SLACK_WEBHOOK_URL }} + webhook-type: incoming-webhook + payload: ${{ env.SLACK_PAYLOAD }} + - name: Notify CI Slack channel + if: matrix.destination == 'ci' + uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c + with: + webhook: ${{ secrets.SLACK_WEBHOOK_URL_CI }} + webhook-type: incoming-webhook + payload: ${{ env.SLACK_PAYLOAD }}