An open API service indexing awesome lists of open source software.

https://github.com/fifsky/dingtalk-action

🐳Dingtalk robot message for github action
https://github.com/fifsky/dingtalk-action

dingtalk-robot github-actions

Last synced: 12 months ago
JSON representation

🐳Dingtalk robot message for github action

Awesome Lists containing this project

README

          

# Dingtalk robot action

![](https://github.com/fifsky/dingtalk-action/workflows/dingtalk/badge.svg)

Github action for sending dingtalk robot messages

## ✨ Example Usage

```yml
- name: dingtalk robot message
uses: fifsky/dingtalk-action@master
with:
url: ${{ secrets.DINGTALK_WEBHOOK}}
type: markdown
content: |
# Tips
## Hello
> from github action message
> ^_^
```

🔐 Set your secrets here: `https://github.com/USERNAME/REPO/settings/secrets`.

**Result**

![result of example ssh workflow](result.png)

## Options

| option | type | required | default | description |
| --- | --- | --- | --- | --- |
| url | string | Yes | none | The full address of dingtalk robot: https://oapi.dingtalk.com/robot/send?access_token=xxxxxx |
| type | string | No | text | Dingtalk message type,support (text,markdown,custom) |
| content | string | Yes | none | Message content, text or markdown or json string |
| at | string | No | none | At user,Use commas to separate, for example: 13812345678,13898754321 |

if type is custom, content is dingtalk api json request body,for example

> content: {"msgtype": "text", "text": {"content": "我就是我, 是不一样的烟火"}}

## Dingtalk robot document

https://ding-doc.dingtalk.com/doc#/serverapi2/qf2nxq