Categorygithub.com/fifsky/drone-wechat-work
modulepackage
1.1.0
Repository: https://github.com/fifsky/drone-wechat-work.git
Documentation: pkg.go.dev

# README

drone-wechat-work

Build and Test

wechat work robot plugin for drone

Usage

  - name: notify
    image: fifsky/drone-wechat-work
    pull: always
    settings:
      url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=XXX-XXXX-XXX-XXXXX
      msgtype: markdown
      content: |
        {{if eq .Status "success" }}
        #### 🎉 ${DRONE_REPO} 构建成功
        > Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK})
        > Author: ${DRONE_COMMIT_AUTHOR}
        > [点击查看](${DRONE_BUILD_LINK})
        {{else}}
        #### ❌ ${DRONE_REPO} 构建失败
        > Commit: [${DRONE_COMMIT_MESSAGE}](${DRONE_COMMIT_LINK})
        > Author: ${DRONE_COMMIT_AUTHOR}
        > 请立即修复!!!
        > [点击查看](${DRONE_BUILD_LINK})
        {{end}}
    when:
      status:
        - failure
        - success

Options

optiontyperequireddefaultdescription
url[]stringYesnoneThe full address of webhook: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxxxxx
typestringNotextmessage type,support (text,markdown)
contentstringYesnoneMessage content, text or markdown or json string
touserstringNononeAt user,Use commas to separate, for example: 13812345678,13898754321 or all

# Packages

No description provided by the author