Go to file
dependabot[bot] 0161e0393e
chore(deps-dev): bump minimist from 1.2.5 to 1.2.8
Bumps [minimist](https://github.com/minimistjs/minimist) from 1.2.5 to 1.2.8.
- [Changelog](https://github.com/minimistjs/minimist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/minimistjs/minimist/compare/v1.2.5...v1.2.8)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-03 06:28:48 +00:00
.github/workflows chore: bump deps 2021-11-08 10:55:31 +08:00
dist fix: bump @zcong/ding-bot deps version 2021-11-10 02:23:02 +08:00
examples Revert "Revert "Update github-build.yml"" 2022-05-11 17:00:29 +08:00
src chore: bump deps 2021-11-08 10:55:31 +08:00
.editorconfig update README.md 2019-08-29 17:50:47 +08:00
.eslintignore feat: v3 2020-06-19 15:57:43 +08:00
.eslintrc.json feat: v3 2020-06-19 15:57:43 +08:00
.gitignore feat: v3 2020-06-19 15:57:43 +08:00
.prettierignore feat: v3 2020-06-19 15:57:43 +08:00
.prettierrc.json feat: v3 2020-06-19 15:57:43 +08:00
LICENSE Initial commit 2019-08-26 06:36:42 +00:00
README.md chore: add badges 2021-11-08 10:57:54 +08:00
action.yml Updated to the node16 runtime by default 2022-10-13 07:21:20 +08:00
package.json fix: bump @zcong/ding-bot deps version 2021-11-10 02:23:02 +08:00
pnpm-lock.yaml chore(deps-dev): bump minimist from 1.2.5 to 1.2.8 2023-08-03 06:28:48 +00:00
tsconfig.json feat: v3 2020-06-19 15:57:43 +08:00

README.md

DingDing Notify Action Test

Send dingding simple notify message.

Usage

option required description
dingToken true DingDing bot access_token
body true any kind of message body dingding support into body field
secret false if secret set, action will call API with sign
ignoreError false if set true, will not fail action when API call failed

Examples

- name: Send dingding notify
  uses: zcong1993/actions-ding@master
  with:
    dingToken: ${{ secrets.DING_TOKEN }}
    body: |
      {
        "msgtype": "link",
        "link": {
            "text": "这个即将发布的新版本,创始人陈航(花名“无招”)称它为“红树林”。而在此之前,每当面临重大升级,产品经理们都会取一个应景的代号,这一次,为什么是“红树林”?",
            "title": "时代的火车向前开",
            "picUrl": "",
            "messageUrl": "https://www.dingtalk.com/s?__biz=MzA4NjMwMTA2Ng==&mid=2650316842&idx=1&sn=60da3ea2b29f1dcc43a7c8e4a7c97a16&scene=2&srcid=09189AnRJEdIiWVaKltFzNTw&from=timeline&isappinstalled=0&key=&ascene=2&uin=&devicetype=android-23&version=26031933&nettype=WIFI"
        }
      }      

with sign

- name: Send dingding notify
  uses: zcong1993/actions-ding@master
  with:
    dingToken: ${{ secrets.DING_TOKEN }}
    secret: ${{ secrets.DING_SECRET }} # if secret set, action will call API with sign
    body: |
      {
        "msgtype": "link",
        "link": {
            "text": "这个即将发布的新版本,创始人陈航(花名“无招”)称它为“红树林”。而在此之前,每当面临重大升级,产品经理们都会取一个应景的代号,这一次,为什么是“红树林”?",
            "title": "时代的火车向前开",
            "picUrl": "",
            "messageUrl": "https://www.dingtalk.com/s?__biz=MzA4NjMwMTA2Ng==&mid=2650316842&idx=1&sn=60da3ea2b29f1dcc43a7c8e4a7c97a16&scene=2&srcid=09189AnRJEdIiWVaKltFzNTw&from=timeline&isappinstalled=0&key=&ascene=2&uin=&devicetype=android-23&version=26031933&nettype=WIFI"
        }
      }      

put any kind of message body dingding support into body field.