-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
100 lines (100 loc) · 3.38 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: "Send Discord Webhook"
author: "hugoalh"
description: "Send Discord webhook."
inputs:
key:
description: "{string} Discord webhook key."
required: true
username:
description: "{string} Override the default webhook username."
required: false
avatar_url:
description: "{string} Override the default webhook avatar."
required: false
content:
description: "{string} Message content."
required: false
content_links_no_embed:
description: "{RegExp[]} Links' regular expressions to prevent Discord resolve and display matches links in the `content` as embed under the message."
required: false
embeds:
description: "{object[]} Message embed rich content."
required: false
poll_question:
description: "{string} Message poll question."
required: false
poll_answers:
description: "{object[]} Message poll answers."
required: false
poll_duration:
description: "{number} Message poll duration."
required: false
poll_allow_multiselect:
description: "{boolean} Whether the message poll allow multiple select answers."
required: false
files:
description: "{string[]} Message attachments/files."
required: false
files_glob:
description: "{boolean} Whether input `files` should accept Glob path instead of literal path."
required: false
allowed_mentions_parse_everyone:
description: "{boolean} Whether the message allowed `@everyone` and `@here` mentions."
required: false
allowed_mentions_parse_roles:
description: "{boolean} Whether the message allowed roles mentions."
required: false
allowed_mentions_parse_users:
description: "{boolean} Whether the message allowed users mentions."
required: false
allowed_mentions_roles:
description: "{string[]} Message allowed mention roles."
required: false
allowed_mentions_users:
description: "{string[]} Message allowed mention users."
required: false
tts:
description: "{boolean} Whether the message use TTS (Text To Speech)."
required: false
thread_id:
description: "{string} Message channel thread ID."
required: false
thread_name:
description: "{string} Forum channel thread name."
required: false
thread_tags:
description: "{string[]} Forum channel thread tags."
required: false
notification:
description: "{boolean} Whether the message trigger push and desktop notifications."
required: false
truncate_enable:
description: "{boolean} Whether to try truncate firstly when inputs are too large."
required: false
truncate_ellipsis:
description: "{string} Ellipsis mark."
required: false
truncate_position:
description: "{string} Ellipsis position."
required: false
wait:
description: "{boolean} Whether to wait for Discord confirmation of message send before response."
required: false
method_form:
description: "{boolean} Whether to force use of `multipart/form-data` instead of `application/json` on the webhook request."
required: false
outputs:
response:
description: "{string} Response content."
status_code:
description: "{number} Request status code."
status_ok:
description: "{boolean} Whether the request was successful."
status_text:
description: "{string} Request status text."
runs:
using: "docker"
image: "docker://ghcr.io/hugoalh/send-discord-webhook-ghaction:7.0.4"
branding:
icon: "send"
color: "blue"