Skip to content

fifsky/drone-wechat-work

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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} [构建成功](${DRONE_BUILD_LINK})
        CommitID: [${DRONE_COMMIT_SHA:0:8}](${DRONE_COMMIT_LINK})
        Author: ${DRONE_COMMIT_AUTHOR}
        {{ .Message }}
        {{else}}
        #### ❌ ${DRONE_REPO} [构建失败](${DRONE_BUILD_LINK})
        CommitID: [${DRONE_COMMIT_SHA:0:8}](${DRONE_COMMIT_LINK})
        Author: ${DRONE_COMMIT_AUTHOR}
        Failed Steps: ${DRONE_FAILED_STEPS}
        {{ .Message }}
        {{end}}
    when:
      status:
        - failure
        - success

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)
content string Yes none Message content, text or markdown or json string
touser string No none At user,Use commas to separate, for example: 13812345678,13898754321 or all

About

drone wechat work robot notify

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •