Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hong-Mu authored Sep 26, 2023
1 parent 4a443ef commit 384746c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: GitHub Discussions Notifier

on:
discussion:
types: [created]
discussion_comment:
types: [created]

jobs:
notify-github-discussions:
runs-on: ubuntu-latest
steps:
- uses: ostk0069/github-discussions-notifier@v0.0.2
with:
SLACK_CHANNEL_ID: ${{secrets.SLACK_CHANNEL_ID}}
SLACK_BOT_TOKEN: ${{secrets.SLACK_BOT_TOKEN}}
send-discussion-create: true
send-discussion-comment: true

0 comments on commit 384746c

Please sign in to comment.