Skip to content

Notify Slack

Notify Slack #1851

Workflow file for this run

name: Notify Slack
on:
discussion_comment:
types: [created]
jobs:
notify_creation_of_discussions:
runs-on: ubuntu-latest
timeout-minutes: 5
if: github.event.discussion && github.event.comment
steps:
- uses: slackapi/[email protected]
with:
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
slack-message: "Created discussion comment: ${{ github.event.comment.html_url }}"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}