-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
153 lines (149 loc) · 4.9 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
name: 'pushNotifications-action'
description: 'Push notifications to multiple platforms.'
version: 'v1.0.1'
author: 'h7ml <[email protected]>'
branding:
icon: 'message-circle'
color: 'green'
version: 'v1.0.1'
author: 'h7ml'
inputs:
IS_CONSOLE:
description: |
Whether to output the log to the console. Default is true.
required: false
default: true
TYPE:
description: |
PushType Available message types: ServerChanTurbo, Dingtalk, CustomEmail, WechatRobot, WechatApp, PushPlus, IGot, Qmsg, XiZhi, PushDeer, Discord, Telegram, OneBot
required: true
TITLE:
description: The title of the notifications to create.
required: true
DESP:
description: The description of the notifications to create.
required: true
SCTKEY:
description: The SCTKEY for ServerChanTurbo notifications.
required: false
ACCESS_TOKEN:
description: The ACCESS_TOKEN for Dingtalk notifications.
required: false
SECRET:
description: The SECRET for Dingtalk notifications.
required: false
WX_ROBOT_KEY:
description: The WX_ROBOT_KEY for WechatRobot notifications.
required: false
MSG_TYPE:
description: The MSG_TYPE for WechatRobot notifications.
required: false
EMAIL_TYPE:
description: The EMAIL_TYPE for CustomEmail notifications.
required: false
EMAIL_TO_ADDRESS:
description: The EMAIL_TO_ADDRESS for CustomEmail notifications.
required: false
EMAIL_AUTH_USER:
description: The EMAIL_AUTH_USER for CustomEmail notifications.
required: false
EMAIL_AUTH_PASS:
description: The EMAIL_AUTH_PASS for CustomEmail notifications.
required: false
EMAIL_HOST:
description: The EMAIL_HOST for CustomEmail notifications.
required: false
EMAIL_PORT:
description: The EMAIL_PORT for CustomEmail notifications.
required: false
WX_APP_CORPID:
description: The WX_APP_CORPID for WechatApp notifications.
required: false
WX_APP_AGENTID:
description: The WX_APP_AGENTID for WechatApp notifications.
required: false
WX_APP_SECRET:
description: The WX_APP_SECRET for WechatApp notifications.
required: false
WX_APP_USERID:
description: The WX_APP_USERID for WechatApp notifications.
required: false
PUSH_PLUS_TOKEN:
description: The PUSH_PLUS_TOKEN for PushPlus notifications.
required: false
TEMPLATE_TYPE:
description: The TEMPLATE_TYPE for PushPlus notifications.
required: false
CHANNEL_TYPE:
description: The CHANNEL_TYPE for PushPlus notifications.
required: false
I_GOT_KEY:
description: The I_GOT_KEY for IGot notifications.
required: false
QMSG_KEY:
description: The QMSG_KEY for Qmsg notifications.
required: false
QMSG_QQ:
description: The QMSG_QQ for Qmsg notifications.
required: false
QMSG_PUSH_TYPE:
description: The QMSG_PUSH_TYPE for Qmsg notifications.
required: false
XI_ZHI_KEY:
description: The XI_ZHI_KEY for XiZhi notifications.
required: false
PUSH_DEER_PUSH_KEY:
description: The PUSH_DEER_PUSH_KEY for PushDeer notifications.
required: false
PUSH_DEER_ENDPOINT:
description: The PUSH_DEER_ENDPOINT for PushDeer notifications.
required: false
PUSH_DEER_PUSH_TYPE:
description: The PUSH_DEER_PUSH_TYPE for PushDeer notifications.
required: false
DISCORD_WEBHOOK:
description: The DISCORD_WEBHOOK for Discord notifications.
required: false
DISCORD_USERNAME:
description: The DISCORD_USERNAME for Discord notifications.
required: false
TELEGRAM_BOT_TOKEN:
description: The TELEGRAM_BOT_TOKEN for Telegram notifications.
required: false
TELEGRAM_CHAT_ID:
description: The TELEGRAM_CHAT_ID for Telegram notifications.
required: false
TELEGRAM_SEND_SILENTLY:
description: The TELEGRAM_SEND_SILENTLY for Telegram notifications.
required: false
TELEGRAM_PROTECT_CONTENT:
description: The TELEGRAM_PROTECT_CONTENT for Telegram notifications.
required: false
TELEGRAM_MESSAGE_THREAD_ID:
description: The TELEGRAM_MESSAGE_THREAD_ID for Telegram notifications.
required: false
ONE_BOT_BASE_URL:
description: The ONE_BOT_BASE_URL for OneBot notifications.
required: false
ONE_BOT_ACCESS_TOKEN:
description: The ONE_BOT_ACCESS_TOKEN for OneBot notifications.
required: false
ONE_BOT_MSG_TYPE:
description: The ONE_BOT_MSG_TYPE for OneBot notifications.
required: false
ONE_BOT_RECIEVER_ID:
description: The ONE_BOT_RECIEVER_ID for OneBot notifications.
required: false
outputs:
response:
description: 'The response of the pushNotifications-action'
value: '${{ steps.pushNotifications.outputs.response }}'
error:
description: 'The error of the pushNotifications-action'
value: '${{ steps.pushNotifications.outputs.error }}'
status:
description: 'The status of the pushNotifications-action'
value: '${{ steps.pushNotifications.outputs.status }}'
runs:
using: 'node20'
main: './dist/index.js'