Skip to content

Commit dd1cb2d

Browse files
committed
ci: add slack release notification
1 parent 099d5fd commit dd1cb2d

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/on-release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Post release announcements
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
jobs:
9+
slack-notification:
10+
name: Share recent changes with a channel
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Send release notification
14+
uses: slackapi/slack-github-action@v2.1.1
15+
with:
16+
webhook: ${{ secrets.SLACK_WEBHOOK_RELEASE_URL }}
17+
webhook-type: webhook-trigger
18+
payload: |
19+
{
20+
"name": ${{ toJSON(github.event.release.name) }},
21+
"version": "${{ github.event.release.tag_name }}",
22+
"body": ${{ toJSON(github.event.release.body) }},
23+
"url": "${{ github.event.release.html_url }}"
24+
}

0 commit comments

Comments
 (0)