A minimal GitHub composite action that sends a Slack notification when a CI job fails.
Uses slackapi/slack-github-action@ under the hood with an incoming webhook.
- Create a Slack App at api.slack.com/apps
- Enable Incoming Webhooks and add one for your target channel
- Store the webhook URL as a GitHub repo secret (e.g.,
SLACK_WEBHOOK_URL)
- name: Notify Slack on failure
if: failure()
uses: deepset-ai/notify-slack-action@v1
with:
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}| Input | Required | Default | Description |
|---|---|---|---|
slack-webhook-url |
Yes | - | Slack Incoming Webhook URL |
mention-here |
No | "true" |
Whether to include @here in the notification |
The notification includes:
- Repository name, workflow name, and branch
@heremention (configurable)- Link to the failed workflow run
Apache 2.0