- name: slack on failureif: failure()uses: actions-ecosystem/action-slack-notifier@fc778468d09c43a6f4d1b8cccaca59766656996awith:
slack_token: <token>message: "${{ inputs.name }} has failed"channel: channel1, channel2, channel3color: redverbose: true
Why this is needed
Because instead of duplicating the action three times, this is a much nicer approach. And it would be relatively easy to implement. Just check if channel contains , then do a loop and send it to all channels.
Support sending direct messages to individual users or user groups
Why this is needed
In some scenarios like pull request reviews we are using and action to assign it to a user or team and send a direct message for them instead of spamming a channel.