Skip to content

Notify Slack

Notify Slack #2025

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:
method: chat.postMessage
payload: |
channel: "${{ secrets.SLACK_CHANNEL_ID }}"
text: "Created discussion comment: ${{ github.event.comment.html_url }}"
env:
SLACK_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}