ksluis321 / wechat-work

Github Action for Sending Wechat Wrok robot messages.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Github Action for Sending Wechat Wrok robot messages.

Github Action for Sending Wechat Wrok robot messages.

Environment Variables

  • WECHAT_WEBHOOK_KEY: wechat webhook key

How to Use

    - name: Sending Wechat Work Message
      uses: x-actions/wechat-work@master
      env:
        WECHAT_WEBHOOK_KEY: ${{ secrets.WECHAT_WEBHOOK_KEY }}
        MSGTYPE: markdown
        CONTENT: |
          # Wechat Work Noti
          > ^_^

Options

./wechat_work
Usage of ./wechat_work:
  -content string
    	content of message (default "This is a text")
  -mentioned string
    	@user, like:"some","@all"
  -msgtype string
    	message type (text, markdown, image, news) (default "markdown")
  -webhookKey string
    	robot webhook access token

Doc

About

Github Action for Sending Wechat Wrok robot messages.

License:MIT License


Languages

Language:Go 73.7%Language:Dockerfile 21.4%Language:Shell 4.9%