forked from aws/aws-toolkit-jetbrains
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (29 loc) · 974 Bytes
/
release-notification.yaml
File metadata and controls
33 lines (29 loc) · 974 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
27
28
29
30
31
32
33
permissions:
contents: read
name: Release Notification
on:
release:
types: [published] # Trigger on new releases being published
jobs:
slack_notification:
runs-on: ubuntu-latest
if: ${{ !github.event.release.prerelease }}
steps:
- name: Print payload
run: |
echo '{
"version": "${{ github.event.release.tag_name }}",
"releaseLink": "${{ github.event.release.html_url }}",
"changelog": ${{ toJSON(github.event.release.body) }}
}'
- name: Send Release Details to Slack
uses: slackapi/slack-github-action@v1.23.0
with:
payload: |
{
"version": "${{ github.event.release.tag_name }}",
"releaseLink": "${{ github.event.release.html_url }}",
"changelog": ${{ toJSON(github.event.release.body) }}
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}