https://github.com/gavinhome/action-dingding
Push DingDing Notification Action
https://github.com/gavinhome/action-dingding
Last synced: 9 months ago
JSON representation
Push DingDing Notification Action
- Host: GitHub
- URL: https://github.com/gavinhome/action-dingding
- Owner: GavinHome
- License: mit
- Created: 2019-09-05T05:29:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T09:00:44.000Z (over 3 years ago)
- Last Synced: 2025-03-04T14:34:34.086Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://github.com/GavinHome/action-dingding
- Size: 486 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Push DingDing Notification Action
This action offers an easy way to push message to your group bot of DingDing support. It runs on all operating systems types offered by GitHub.
## Input variables
You must provide:
- `token`: Usually you'll want to set this to `${{ secrets.DING_TOKEN }}`.
- `body`: Put any kind of message body.
See the walkthrough located [dingding](https://ding-doc.dingtalk.com/doc#/serverapi2/qf2nxq), support into `body` and `token` fields.
## Getting Started
This usage assumes you want to send dingding message only.
- First, set up DingDing group [bot](https://ding-doc.dingtalk.com/doc#/serverapi2/qf2nxq).
- Second, This is a common use case as you will want to send DingDing message.
Simple example:
```yaml
- name: Send dingding notify
uses: GavinHome/action-dingding@v1.0
with:
token: ${{ secrets.DING_TOKEN }}
body: |
{
"msgtype": "markdown",
"markdown": {
"title":"杭州天气",
"text": "#### 杭州天气\n > 9度,西北风1级,空气良89,相对温度73%\n\n > \n > ###### 10点20分发布 [天气](http://www.thinkpage.cn/) \n"
}
}
```