actions-marketplace-validations/slacknotifier
Sends a notification to Slack
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| slack-token | Slack bot token, usually starts with xoxb- | yes | — |
| bot-name | the bot name | yes | slacknotifier |
| bot-icon-emoji | emoji to use as the bot’s icon | yes | :ghost: |
| channel-id | the ID of the channel to send the notification to | yes | — |
| message | the notification message | yes | — |
| message-context | extra context information to be included with the notification message, usually displayed below the message | yes | "" |
| markdown | whether the message and message-context are in Slack’s Markdown format or not ("true" or "false" as string) | yes | true |
| replace-timestamp | the timestamp of a previously-sent message (e.g. from a previous step) to replace with this message | yes | "" |
| timeout | how long to wait before giving up when sending notification to Slack (format: Go time.Duration) | yes | 30s |
| ignore-failure | when true, the action will return success anyway upon failure to notify Slack | no | false |
Outputs
| name | description |
|---|---|
| channel-id | the canonical channel ID where the message was sent |
| timestamp | timestamp of the sent message, useful for replacing this message at a later step |