diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..5907a5f --- /dev/null +++ b/.github/workflows/main.yml @@ -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