You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
2 years ago | |
---|---|---|
CHANGELOG.md | 2 years ago | |
LICENSE | 2 years ago | |
README.md | 2 years ago | |
slack-webhook-orb.yml | 2 years ago |
README.md
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.