-
Notifications
You must be signed in to change notification settings - Fork 7
/
action.yml
48 lines (48 loc) · 1.58 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Slack Message
description: Send messages to Slack from GitHub Actions.
branding:
icon: message-square
color: purple
runs:
using: node20
main: ./index.dist.js
inputs:
text:
description: Text to send to Slack, in Slack's "mrkdwn" format - required.
required: true
color:
description: The colour of the Slack attachment.
required: false
bot-token:
description: A Slack bot token to send messages with - required if `webhook-url` was not provided.
required: false
webhook-url:
description: A Slack webhook URL to send messages to - required if `bot-token` was not provided.
required: false
channel:
description: The Slack channel - required if `bot-token`, optional with `webhook-url`.
required: false
username:
description: Set the webhook username - only valid if `webhook-url` was provided.
required: false
title:
description: A title for the Slack message, defaults to "$WORKFLOW_NAME (#$COMMIT-HASH)"
required: false
icon-emoji:
description: Set the webhook icon_emoji - only valid if `webhook-url` was provided.
required: false
icon-url:
description: Set the webhook icon_url - only valid if `webhook-url` was provided.
required: false
message-id:
description: The ID of the existing Slack message to update - only valid if `bot-token` was provided.
required: false
image-url:
description: Image URL for attachment
required: false
thumb-url:
description: Thumb URL for attachment
required: false
outputs:
message-id:
description: The unique identifier of the Slack message sent.