Skip to content

ghostoy/dingtalk-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dingtalk robot action

Github action for sending dingtalk messages via webhook

Example Usage

- name: send dingtalk message
  uses: ghostoy/dingtalk-action@master
  with:
    webhook: ${{ secrets.DINGTALK_WEBHOOK}}
    msgtype: markdown
    content: |
      {
        "title": "New push",
        "text": "commit: ${{ github.sha }}"
      }
    at: |
      {
        "atMobiles": [
          "1234567890"
        ],
        "isAtAll": false
      }

Options

option type required default description
webhook string Yes none The full address of dingtalk robot: https://oapi.dingtalk.com/robot/send?access_token=xxxxxx
msgtype string No text Dingtalk message type. Valid types are: text,markdown,link,actionCard,feedCard. Default: text.
content string Yes none Message content in JSON type. See Dingtalk Developer document for details.
at string No none At users in JSON type.
secret string No none Secret key generated by DingTalk. See DingTalk Developer document for details.

About

Send out DingTalk messages via webhook

Resources

License

Stars

Watchers

Forks

Packages

No packages published