feat: 初始化 Gitea Action 发送钉钉机器人消息项目
This commit is contained in:
64
action.yml
Normal file
64
action.yml
Normal file
@@ -0,0 +1,64 @@
|
||||
name: 'DingTalk Notification'
|
||||
description: 'Send notifications to DingTalk Bot via webhook'
|
||||
author: 'DingTalk Action Team'
|
||||
branding:
|
||||
icon: 'message-circle'
|
||||
color: 'blue'
|
||||
|
||||
inputs:
|
||||
webhook_url:
|
||||
description: 'DingTalk webhook URL'
|
||||
required: true
|
||||
message_type:
|
||||
description: 'Message type (text, markdown, link, actionCard, feedCard)'
|
||||
required: false
|
||||
default: 'text'
|
||||
content:
|
||||
description: 'Message content'
|
||||
required: true
|
||||
title:
|
||||
description: 'Message title (required for markdown and link types)'
|
||||
required: false
|
||||
at_mobiles:
|
||||
description: 'Mobile numbers to mention (comma separated)'
|
||||
required: false
|
||||
at_all:
|
||||
description: 'Whether to mention all members'
|
||||
required: false
|
||||
default: 'false'
|
||||
link_url:
|
||||
description: 'Link URL (required for link type messages)'
|
||||
required: false
|
||||
pic_url:
|
||||
description: 'Picture URL (optional for link type messages)'
|
||||
required: false
|
||||
# ActionCard inputs
|
||||
btn_orientation:
|
||||
description: "Button orientation for actionCard ('0' vertical, '1' horizontal)"
|
||||
required: false
|
||||
default: '0'
|
||||
single_title:
|
||||
description: 'Single button title for actionCard (overall jump)'
|
||||
required: false
|
||||
single_url:
|
||||
description: 'Single button URL for actionCard (overall jump)'
|
||||
required: false
|
||||
buttons:
|
||||
description: 'ActionCard multiple buttons JSON array: [{title, actionURL}]'
|
||||
required: false
|
||||
# FeedCard inputs
|
||||
feed_links:
|
||||
description: 'FeedCard links JSON array: [{title, messageURL, picURL}]'
|
||||
required: false
|
||||
|
||||
outputs:
|
||||
success:
|
||||
description: 'Whether the message was sent successfully'
|
||||
message_id:
|
||||
description: 'DingTalk message ID if available'
|
||||
error_message:
|
||||
description: 'Error message if sending failed'
|
||||
|
||||
runs:
|
||||
using: 'node20'
|
||||
main: 'src/index.js'
|
||||
Reference in New Issue
Block a user