Skip to content

Commit 9eb9942

Browse files
authored
chore: add notification for discussions (#460)
1 parent dc1a566 commit 9eb9942

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Notify Slack - Discussions
2+
3+
on:
4+
discussion:
5+
types: [created]
6+
7+
permissions: {}
8+
9+
jobs:
10+
notify:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Send discussion notification to Slack
14+
uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3
15+
with:
16+
webhook: ${{ secrets.SLACK_WEBHOOK_URL_DISCUSSION }}
17+
webhook-type: incoming-webhook
18+
payload: |
19+
{
20+
"action": "${{ github.event.action }}",
21+
"discussion_url": "${{ github.event.discussion.html_url }}",
22+
"package_name": "${{ github.repository }}"
23+
}

0 commit comments

Comments
 (0)