This repository was archived by the owner on Mar 25, 2026. It is now read-only.
Notify Slack on Discussions Activity #447
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Notify Slack on Discussions Activity | |
| on: | |
| discussion: | |
| types: [created] | |
| discussion_comment: | |
| types: [created] | |
| jobs: | |
| notify-slack: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Send Discussion Creation to Slack | |
| if: ${{ github.event_name == 'discussion' }} | |
| uses: slackapi/[email protected] | |
| with: | |
| channel-id: ${{ secrets.SLACK_CHANNEL_NAME }} | |
| slack-message: "새 GitHub Discussion이 생성되었습니다!\n*제목:* ${{ github.event.discussion.title }}\n*작성자:* ${{ github.event.discussion.user.login }}\n*링크:* ${{ github.event.discussion.html_url }}" | |
| env: | |
| SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | |
| - name: Send Comment Creation to Slack | |
| if: ${{ github.event_name == 'discussion_comment' }} | |
| uses: slackapi/[email protected] | |
| with: | |
| channel-id: ${{ secrets.SLACK_CHANNEL_NAME }} | |
| slack-message: "GitHub Discussion에 새 댓글이 작성되었습니다!\n*Discussion:* ${{ github.event.discussion.title }}\n*댓글 작성자:* ${{ github.event.comment.user.login }}\n*링크:* ${{ github.event.comment.html_url }}" | |
| env: | |
| SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} |