Skip to content

Commit bd7521c

Browse files
authored
feat: add github action for release notification (#2625)
* feat: add github action for release notification
1 parent a2da6f6 commit bd7521c

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
2+
name: Release Notification
3+
4+
on:
5+
release:
6+
types: [published] # Trigger on new releases being published
7+
8+
jobs:
9+
slack_notification:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Send Release Details to Slack
13+
uses: slackapi/[email protected] # Or the latest version of this action
14+
with:
15+
payload: |
16+
{
17+
"release_name": "${{ github.event.release.name }}",
18+
"tag_name": "${{ github.event.release.tag_name }}",
19+
"release_url": "${{ github.event.release.html_url }}",
20+
"author_name": "${{ github.event.release.author.login }}",
21+
"repository_name": "${{ github.event.repository.name }}",
22+
"repository_url": "${{ github.event.repository.html_url }}",
23+
"release_description": ${{ toJSON(github.event.release.body) }}
24+
}
25+
env:
26+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # Use the secret for the webhook URL

0 commit comments

Comments
 (0)