Releases: 8398a7/action-slack
Support multiple users mention
Multiple users can be specified for mention
or only_mention_fail
, separated by commas.
It cannot be specified with group mentions such as here
and channel
.
...
mention: user_id,user_id2
---
...
only_mention_fail: user_id,user_id2
Support user mention
Until now, only here
and channel
were supported for mentions.
In v2.5.0 or later, you can mention by specifying user_id in mention
or only_mention_fail
.
Upgrade vulnerabilities package and Fix typo
v2.4.2 [npm] run publish
fix README
Fixed typo of with key.
Change GITHUB_TOKEN for custom to optional
For custom notifications, tokens are not required, so they are optional.
Support for object eval
Until now, payload had to be written in json.
In v2.3.0 or later, payload can be described with javascript object.
As usual, there is no problem even if you write in json notation.
Support legacy incoming webhooks
Added support for legacy incoming webhooks.
This makes the following params available.
key | value | default | description |
---|---|---|---|
username | Only legacy incoming webhook supported. | '' | override the legacy integration's default name. |
icon_emoji | Only legacy incoming webhook supported. | '' | an emoji code string to use in place of the default icon. |
icon_url | Only legacy incoming webhook supported. | '' | an icon image URL string to use in place of the default icon. |
channel | Only legacy incoming webhook supported. | '' | override the legacy integration's default channel. This should be an ID, such as C8UJ12P4P . |
Only when using legacy incoming webhooks url, you can specify the channel and change the user icon.
Replacing screenshot
Changed to v2 screenshot.
Simplified notation for slack notification
Changed to get the success / failure of actions from $ {{job.status}}
.
This makes it unnecessary to define two types of if: success ()
and if: failure ()
.
Released as v2 because it contains destructive changes compared to v1.
Fix typo in failedMention
Fixed spelling mistakes in action.yml and main.ts.