Skip to content

Commit 1dc3551

Browse files
authoredApr 17, 2025
build: add slack-notificaitons
1 parent 1ada40e commit 1dc3551

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
 

‎.github/workflows/release.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Release Action
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
notify-release:
10+
runs-on: ubuntu-latest
11+
name: Notify Release
12+
strategy:
13+
matrix:
14+
url: [SLACK_WEBHOOK_ASK_DEVREL_URL, SLACK_WEBHOOK_DEVREL_TOOLING_URL, SLACK_WEBHOOK_DEVREL_PRIVATE_URL, SLACK_WEBHOOK_COMMUNITY]
15+
steps:
16+
- name: Send to slack channels
17+
uses: slackapi/slack-github-action@v2.0.0
18+
with:
19+
webhook: ${{ secrets[matrix.url]}}
20+
webhook-type: incoming-webhook
21+
errors: true
22+
payload: |
23+
blocks:
24+
- type: "header"
25+
text:
26+
type: "plain_text"
27+
text: ":initial_external_notification_sent: :python: Version ${{ github.event.release.name }} of the Python SDK has been released"
28+
- type: "section"
29+
text:
30+
type: "mrkdwn"
31+
text: "${{ github.event.release.body }}"
32+
- type: "divider"
33+
- type: "section"
34+
text:
35+
type: "mrkdwn"
36+
text: "You can view the full change log <${{github.event.release.html_url }}|here>"
37+
38+
39+

0 commit comments

Comments
 (0)