mirror of
https://github.com/clem109/drone-wechat.git
synced 2026-06-04 18:33:45 +08:00
updated docs to show correct yaml file example
This commit is contained in:
@@ -2,9 +2,10 @@ Use the wechat plugin to notify users during the Drone pipeline.
|
||||
|
||||
Please only use these paramters for now:
|
||||
|
||||
* `access_token` - The access token for authorization
|
||||
* `agentid` - The agent id to send the message
|
||||
* `msgurl` - The agent id to send the message
|
||||
* `corpid` - The corpid for authorization
|
||||
* `corp_secret` - The corp secret for authorization
|
||||
* `agent_id` - The agent id to send the message
|
||||
* `msg_url` - The agent id to send the message
|
||||
* `btntxt` - The text for the button on the card
|
||||
* `title` - Title of the card
|
||||
* `description` - Text description of the card
|
||||
@@ -14,13 +15,16 @@ Please only use these paramters for now:
|
||||
The following is a sample configuration in your .drone.yml file:
|
||||
|
||||
```yaml
|
||||
pipeline:
|
||||
wechat:
|
||||
image: clem109/drone-wechat
|
||||
corpid: corpid
|
||||
corp_secret: corpsecret
|
||||
agent_id: 123456
|
||||
title: title
|
||||
description: some description
|
||||
msg_url: someurl
|
||||
btn_txt: btn text
|
||||
corp_secret: secret
|
||||
agent_id: 1234567
|
||||
title: ${DRONE_REPO_NAME}
|
||||
description: "Build Number: ${DRONE_BUILD_NUMBER} failed. ${DRONE_COMMIT_AUTHOR} please fix. Check the results here: ${DRONE_BUILD_LINK} "
|
||||
msg_url: ${DRONE_BUILD_LINK}
|
||||
btn_txt: btn
|
||||
when:
|
||||
status: [ failure ]
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user