File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments