forked from actions-ecosystem/action-slack-notifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
33 lines (33 loc) · 1.17 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Actions Ecosystem Slack Notifier
description: Send notifications to Slack.
author: The Actions Ecosystem Authors
inputs:
slack_token:
description: A Slack token.
required: true
channel:
description: A channel that will receives the message. e.g.) `develop`, `#develop`
required: true
message:
description: A message for the channel. Supports Markdown format.
required: true
username:
description: An username who sends a message.
required: false
default: "GitHub Actions"
color:
description: A color of a message. The color names {black, red, green, yellow, blue, magenta, cyan, white} and color code (e.g., `#4CAF50`) are available. The default is no-color.
required: false
verbose:
description: "Whether message contains GitHub context: repository, ref, workflow, event, action, number"
required: false
default: "false"
custom_payload:
description: A custom payload, in the form of JSON of a Slack block array, overriding the whole message. If this is specified, `inputs.color` and `inputs.verbose` are ignored.
required: false
runs:
using: node12
main: dist/index.js
branding:
icon: bell
color: yellow