Skip to content
message-square

GitHub Action

Wechat Work Robot Message

v0.0.1 Latest version

Wechat Work Robot Message

message-square

Wechat Work Robot Message

wechat work robot message for github action

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Wechat Work Robot Message

uses: fifsky/[email protected]

Learn more about this action in fifsky/wechat-work-action

Choose a version

Wechat-Work robot action

Github action for sending Wechat-Work robot messages

✨ Example Usage

- name: wechat-work robot message
uses: fifsky/wechat-work-action@master
with:
  url: ${{ secrets.WECHATWORK_WEBHOOK}}
  type: markdown
  content: |
    # Tips
    ## Hello
    > from github action message
    > ^_^
    - repository: ${{ github.repository }}
    - committer: ${{ github.actor }}
    - compare: [view](${{ github.event.compare }})
    - job status: ${{ job.status }}

🔐 Set your secrets here: https://github.com/USERNAME/REPO/settings/secrets.

Contexts and expression syntax for GitHub Actions, here: https://help.github.com/en/articles/contexts-and-expression-syntax-for-github-actions#github-context

Result

result of example ssh workflow

Options

option type required default description
url string Yes none The full address of webhook: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxxxx
type string No text 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 or all

if type is custom, content is wecaht-work api json request body,for example

content: {"msgtype": "text", "text": {"content": "我就是我, 是不一样的烟火"}}