sonots/Slack Notice Action
A GitHub Action to notify slack.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| status | Specify success or failure or cancelled or custom. | — | — |
| payload | json payload refs https://github.com/slackapi/node-slack-sdk/blob/v5.0.0/packages/webhook/src/IncomingWebhook.ts#L91-L106) | — | — |
| mention | Specify channel or here or `user_id`. refs: https://api.slack.com/reference/surfaces/formatting#mentioning-users | — | "" |
| only_mention_fail | Specify channel or here or `user_id`. refs: https://api.slack.com/reference/surfaces/formatting#mentioning-users | — | "" |
| title | Title for slack notification. | — | "" |
| text | You can overwrite text. | — | "" |
| text_on_success | Override text on success only. Wins over `text`. | — | "" |
| text_on_fail | Override text on failure only. Wins over `text`. | — | "" |
| text_on_cancel | Override text on cancellation only. Wins over `text`. | — | "" |
| channel | Slack channel ID or name (e.g. `C0123456789` or `#alerts`). Required when using Bot Token mode (`SLACK_BOT_TOKEN`). Ignored in Webhook mode (the channel is fixed by the webhook URL). | — | "" |
| username | Override the bot display name for this message. Bot Token mode only — Slack ignores this in Webhook mode. | — | "" |
| icon_emoji | Override the bot icon for this message with an emoji (e.g. `:rocket:`). Bot Token mode only. | — | "" |
| icon_url | Override the bot icon for this message with an image URL. Bot Token mode only. | — | "" |
Outputs
no outputs