generated from yukin01/typescript-action-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yaml
44 lines (41 loc) · 1.17 KB
/
action.yaml
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
34
35
36
37
38
39
40
41
42
43
44
name: Slack Bot (Web API) Action
description: An action to notify Slack using the chat.postMessage API
author: yukin01
inputs:
status:
description: Job results. In most use cases, you should specify `job.status`.
required: true
github_token:
description: Personal access token (PAT) used to fetch the repository.
required: false
default: ${{ github.token }}
oauth_token:
description: |
Slack's access token. If you're using modern Slack Apps,
specify the **Bot User OAuth Access Token** which begin with `xoxb-`.
required: true
channel:
description: The channel to be notified of results.
required: true
text:
description: Override main body text of the message.
required: false
default: ''
username:
description: Override bot's user name.
required: false
default: ''
icon_emoji:
description: Emoji to use as the icon for this message. Overrides `icon_url`.
required: false
default: ''
icon_url:
description: URL to an image to use as the icon for this message.
required: false
default: ''
runs:
using: node12
main: dist/index.js
branding:
icon: alert-circle
color: green