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
- Host: GitHub
- URL: https://github.com/fifsky/dingtalk-action
- Owner: fifsky
- License: mit
- Created: 2019-09-11T04:39:38.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-16T02:11:59.000Z (over 6 years ago)
- Last Synced: 2025-04-21T07:09:47.659Z (about 1 year ago)
- Topics: dingtalk-robot, github-actions
- Language: JavaScript
- Homepage:
- Size: 56.6 KB
- Stars: 14
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dingtalk robot action

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**

## 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