forked from aws/aws-toolkit-jetbrains
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (37 loc) · 1.55 KB
/
release-notification.yaml
File metadata and controls
40 lines (37 loc) · 1.55 KB
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
34
35
36
37
38
39
40
name: Release Notification
on:
release:
types: [published] # Trigger on new releases being published
jobs:
slack_notification:
runs-on: ubuntu-latest
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 # Or the latest version of this action
# with:
# payload: |
# {
# "version": "${{ github.event.release.tag_name }}",
#
# "release_url": "${{ github.event.release.html_url }}",
# "releaseLink": ${{ toJSON(github.event.release.body) }}
# }
# {
# "release_name": "${{ github.event.release.name }}",
# "tag_name": "${{ github.event.release.tag_name }}",
# "release_version": "${{ 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