CircleCI Orb for sending Slack messages via webhooks.
CHANGELOG.md | ||
LICENSE | ||
README.md | ||
slack-webhook-orb.yml |
Slack Webhook CircleCI Orb
Setup
- Create a webhook.
- Generate a JSON payload.
- Place the webhook in a CircleCI environment variable (
SLACK_WEBHOOK
by default, but customizable). - Call the orb:
slack-webhook/send-message: json-payload: | { "blocks": [ { "type": "section", "text": { "type": "mrkdwn", "text": "Hello from <https://github.com/adamu|@adamu>'s `slack-webhook` CircleCi orb! 👋" } } ] }
Usage
The json-payload
argument must always be provided.
There are three ways to provide the webhook URL:
- Via the
SLACK_WEBHOOK
environment variable. - Via a custom environment variable. Provide the name with the
webhook-url-env-var
parameter. - Directly to the
send-message
command with thewebhook-url
parameter.
See the full examples on the orb's CircleCI Orb Repository listing.
Changelog
See the CHANGELOG.