We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f8c265f commit bd245f7Copy full SHA for bd245f7
1 file changed
.github/workflows/notify-discussions.yml
@@ -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