sixt/Post Slack Message
Posts a Slack message to a given channel
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | A GitHub token used to enrich the Slack message. Defaults to the one provided by the GitHub action context. | yes | ${{ github.token }} |
| slack_token | Slack authentication token bearing required scopes. Example: xxxx-xxxxxxxxx-xxxx | yes | — |
| channel | Channel, private group, or IM channel to send message to. Can be an encoded ID, or a name. Example: C1234567890 | yes | — |
| status | The current status of the job. Defaults to the one provided by the context. Possible values: success, failure, cancelled | yes | ${{ job.status }} |
| mention | A trigger word that should be used to mention a channel, a team or a user. Reference: https://api.slack.com/reference/surfaces/formatting#mentioning-users Example: here | no | "" |
| if_mention | A condition when the mention should be applied. The value can be success, failure, cancelled or always. Multiple conditions can be separated with a comma. Example: success,failure | no | "" |
| fields | A list of fields that should be used to enrich the message. Not all fields might be available, e.g. if a workflow has been started with the workflow_dispatch event, it might not be possible to fetch data related to a PR. If you specify more than one field, please separate them with a comma, e.g. commit,repo Possible fields are: repo, message, commit, actor, job, duration, eventName, ref, pr, workflow | no | "" |
| text | A message that can be formatted using Slack's mrkdwn format.. This input is optional if a 'header' or 'custom_blocks' input is provided. In case one of the mentioned inputs is provided as well, the 'text' will be used as fallback and as the text displayed in notifications. | no | — |
| header | A header, displayed at the top of the Slack message. | no | — |
| changelog | A changelog, which will be displayed within the message. | no | — |
| buttons | A list of buttons, using new lines as separator. Each line has the format 'title|url'. It is also possible to change the style of the button by inserting a style of Slack's Button Element (https://api.slack.com/reference/block-kit/block-elements#button) between the 'title' and the 'url', e.g. 'title|style|url'. | no | — |
| custom_blocks | A JSON-based array of structured blocks. Setting this property will override the default blocks. | no | — |
Outputs
no outputs