From 384746cc3a52fc74adc23c9439cccbcc20deb092 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B1=84=ED=99=8D=EB=AC=B4?= <92268965+Hong-Mu@users.noreply.github.com> Date: Tue, 26 Sep 2023 15:06:15 +0900 Subject: [PATCH] Create main.yml --- .github/workflows/main.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/main.yml 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