sixt/Post Slack Message

Posts a Slack message to a given channel

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
github_tokenA GitHub token used to enrich the Slack message. Defaults to the one provided by the GitHub action context.yes${{ github.token }}
slack_tokenSlack authentication token bearing required scopes. Example: xxxx-xxxxxxxxx-xxxx yes
channelChannel, private group, or IM channel to send message to. Can be an encoded ID, or a name. Example: C1234567890 yes
statusThe current status of the job. Defaults to the one provided by the context. Possible values: success, failure, cancelled yes${{ job.status }}
mentionA 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_mentionA 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""
fieldsA 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""
textA 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
headerA header, displayed at the top of the Slack message.no
changelogA changelog, which will be displayed within the message.no
buttonsA 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_blocksA JSON-based array of structured blocks. Setting this property will override the default blocks.no

no outputs