Skip to content

Commit 95093e2

Browse files
committed
initial notif
1 parent a2fb39a commit 95093e2

File tree

1 file changed

+40
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)