Skip to content

Commit 3ab4b65

Browse files
authored
feat(ci): notify on release (#53)
1 parent 05b41a6 commit 3ab4b65

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
release:
3+
types: [published]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
notify:
10+
name: Notify
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Send release notification
14+
uses: slackapi/slack-github-action@485a9d42d3a73031f12ec201c457e2162c45d02d # v2.0.0
15+
with:
16+
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
17+
webhook-type: webhook-trigger
18+
payload: |
19+
repo: "${{ github.repository }}"
20+
url: "${{ github.event.release.html_url }}"
21+
version: "${{ github.event.release.tag_name }}"

0 commit comments

Comments
 (0)