forked from abhraina-aws/amazon-q-developer-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (23 loc) · 984 Bytes
/
release-notification.yaml
File metadata and controls
26 lines (23 loc) · 984 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
name: Release Notification
on:
release:
types: [published] # Trigger on new releases being published
jobs:
slack_notification:
runs-on: ubuntu-latest
steps:
- name: Send Release Details to Slack
uses: slackapi/slack-github-action@v1.23.0 # Or the latest version of this action
with:
payload: |
{
"release_name": "${{ github.event.release.name }}",
"tag_name": "${{ github.event.release.tag_name }}",
"release_url": "${{ github.event.release.html_url }}",
"author_name": "${{ github.event.release.author.login }}",
"repository_name": "${{ github.event.repository.name }}",
"repository_url": "${{ github.event.repository.html_url }}",
"release_description": ${{ toJSON(github.event.release.body) }}
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} # Use the secret for the webhook URL