action-wechat-work/action.yml

38 lines
1.7 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# action.yml
name: 'GitHub Action for WeChat Work'
description: 'Send WeChat Work message. Run on any operating platform, such as Windows, Linux, Mac supported by GitHub'
author: 'chf007 <chf007server@gmail.com>'
branding:
icon: 'message-circle'
color: 'red'
inputs:
msgtype:
description: '消息类型,当前支持 text markdown image news file'
required: true
content:
description: '当 msgtype=text 时:文本内容,最长不超过 2048 个字节,必须是 utf8 编码;当 msgtype=text 时markdown 内容,最长不超过 4096 个字节,必须是 utf8 编码 支持的格式详见 https://work.weixin.qq.com/api/doc/90000/90136/91770'
required: false
mentioned_list:
description: 'userid 的列表,提醒群中的指定成员(@某个成员)@all表示提醒所有人如果开发者获取不到 userid可以使用 mentioned_mobile_list必须是序列化后的 JSON 字符串'
required: false
mentioned_mobile_list:
description: '手机号列表,提醒手机号对应的群成员(@某个成员)@all表示提醒所有人必须是序列化后的 JSON 字符串'
required: false
base64:
description: '图片内容的 base64 编码 注图片base64 编码前)最大不能超过 2 M支持 JPG、PNG 格式'
required: false
md5:
description: '图片内容base64 编码前)的 md5 值'
required: false
articles:
description: '图文消息,一个图文消息支持 1 到 8 条图文,必须是序列化后的 JSON 字符串'
required: false
media_id:
description: '文件 id通过 [文件上传接口](https://work.weixin.qq.com/api/doc/90000/90136/91770) 获取'
required: false
runs:
using: 'node12'
main: 'dist/index.js'