Skip to content

Notify Slack

Notify Slack #1919

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/slack-github-action@v2.0.0
method: chat.postMessage

Check failure on line 13 in .github/workflows/notify_slack.yml

View workflow run for this annotation

GitHub Actions / Notify Slack

Invalid workflow file

The workflow is not valid. .github/workflows/notify_slack.yml (Line: 13, Col: 9): Unexpected value 'method' .github/workflows/notify_slack.yml (Line: 14, Col: 9): Unexpected value 'payload'
payload: |
channel: "${{ secrets.SLACK_CHANNEL_ID }}"
text: "Created discussion comment: ${{ github.event.comment.html_url }}"
env:
SLACK_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}