eugene-babichenko/Send Slack notification
Send a Slack message with the workflow data.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Oct 14, 2021
- License
- MIT
- Runtime
- Deprecated runtime
Pinned Snippet
uses: eugene-babichenko/slack-notifier@9c40a85e3a2707fbde0cb329d3239c7848992448 # v1.0.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| webhook | URL of Slack incoming webhook. | yes | — |
| status | The status to be used for the notification. A status of a step can be used. Must be on of: - `success` - `failure` - `cancelled` | yes | — |
| text | The text of the notification. You can use Slack message markup. By default this is set based on the provided `status`. | no | "" |
| color | The color this message will be highlighted with. By default this is set based on the provided `status`. | no | "" |
| username | Change the displayed name of the app for this message. This requires your app to have [`chat:write.customize`](https://api.slack.com/scopes/chat:write.customize) scope enabled. Otherwise this field will not have any effect. See (Slack API docs)[https://api.slack.com/messaging/sending#impersonation] for more details. | no | "" |
| icon-url | Change the displayed icon of the app. This requires your app to have [`chat:write.customize`](https://api.slack.com/scopes/chat:write.customize) scope enabled. Otherwise this field will not have any effect. See (Slack API docs)[https://api.slack.com/messaging/sending#impersonation] for more details. | no | "" |
| icon-emoji | Display an emoji as the app icon. This requires your app to have [`chat:write.customize`](https://api.slack.com/scopes/chat:write.customize) scope enabled. Otherwise this field will not have any effect. See (Slack API docs)[https://api.slack.com/messaging/sending#impersonation] for more details. | no | "" |
| custom-fields | A JSON array of additional fields to be displayed along with the default ones. See (Field objects)[https://api.slack.com/reference/messaging/attachments#field_objects] documentation for the details. | no | [] |
Outputs
no outputs