-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
99 lines (98 loc) · 2.43 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
name: "chatz action"
description: "Github actions using chatz for github workflow."
inputs:
provider:
description: "Provider name should be one of [slack, google, telegram, discord, redis]"
required: true
web_hook_url:
description: "Web Hook URL for google/discord."
required: false
default: ""
token:
description: "Token for slack/telegram."
required: false
default: ""
channel_id:
description: "Target channel id."
required: false
default: ""
chat_id:
description: "Target chat id."
required: false
default: ""
connection_url:
description: "Connection URL for redis."
required: false
default: ""
thread_id:
description: "Thread id for reply."
required: false
default: ""
required_failed:
description: "Exit with an error if the response indicates failure"
required: false
default: "false" # Default value is false
smtp_host:
description: "SMTP server host."
required: false
default: ""
smtp_port:
description: "SMTP server port."
required: false
default: "0"
smtp_use_tls:
description: "Use TLS flag."
required: false
default: "false"
smtp_use_starttls:
description: "Use STARTTLS flag."
required: false
default: "false"
smtp_user:
description: "SMTP server login username."
required: false
default: ""
smtp_password:
description: "SMTP server login password."
required: false
default: ""
smtp_subject:
description: "Email subject."
required: false
default: ""
smtp_from:
description: "From email address."
required: false
default: ""
smtp_to:
description: "To email address comma saparated."
required: false
default: ""
message:
description: "Message for send."
required: true
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.provider }}
- ${{ inputs.web_hook_url }}
- ${{ inputs.token }}
- ${{ inputs.channel_id }}
- ${{ inputs.chat_id }}
- ${{ inputs.connection_url }}
- ${{ inputs.thread_id }}
- ${{ inputs.required_failed }}
- ${{ inputs.smtp_host }}
- ${{ inputs.smtp_port }}
- ${{ inputs.smtp_use_tls }}
- ${{ inputs.smtp_use_starttls }}
- ${{ inputs.smtp_user }}
- ${{ inputs.smtp_password }}
- ${{ inputs.smtp_subject }}
- ${{ inputs.smtp_from }}
- ${{ inputs.smtp_to }}
- ${{ inputs.message }}
branding:
icon: "git-commit"
color: "green"