Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/x-actions/dingtalk

Github Action for Sending Dingtalk robot messages.
https://github.com/x-actions/dingtalk

actions ali dingtalk github githubactions

Last synced: about 2 months ago
JSON representation

Github Action for Sending Dingtalk robot messages.

Awesome Lists containing this project

README

        

# Github Action for Dingtalk Robot Messages

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

Github Action for Sending Dingtalk robot messages.

## Environment Variables

- DINGTALK_ACCESS_TOKEN: dingtalk access token
- DINGTALK_SECRET: dingtalk secret

## How to Use

```
- name: Sending Dingtalk Message
uses: x-actions/dingtalk@master
env:
DINGTALK_ACCESS_TOKEN: ${{ secrets.DINGTALK_ACCESS_TOKEN }}
DINGTALK_SECRET: ${{ secrets.DINGTALK_SECRET }}
MSGTYPE: markdown
TITLE: "x-actions dingtalk message"
TEXT: |
# Noti
> Build Github Action Done.
> ^_^
```

## Options

```
Usage of ./dingtalk:
-accessToken string
robot webhook access token
-atMobiles string
phones nums, like: phone1,phone2
-isAtAll
is at all
-messageUrl string
Message Url
-msgtype string
message type (text, link, markdown, actionCard, feedCard) (default "text")
-picUrl string
Message Picture Url
-secret string
robot webhook secret
-text string
text of message (default "This is a text")
-title string
title of message (default "This is a title")
```

## Dingtalk Doc

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