测试打包通知2
parent
5cab834978
commit
e2d19c5738
|
|
@ -23,7 +23,7 @@ steps:
|
|||
- name: notify-wecom
|
||||
commands:
|
||||
- |
|
||||
STATUS=$DRONE_BUILD_STATUS
|
||||
STATUS="$DRONE_BUILD_STATUS"
|
||||
|
||||
if [ "$STATUS" = "success" ]; then
|
||||
MSG="🟢 Test_HIR 发布成功"
|
||||
|
|
@ -33,9 +33,9 @@ steps:
|
|||
COLOR="warning"
|
||||
fi
|
||||
|
||||
curl -X POST "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=cdd97aab-d256-4f07-9145-a0a2b1555322" \
|
||||
curl -s -X POST "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=cdd97aab-d256-4f07-9145-a0a2b1555322" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d @- <<EOF
|
||||
--data-binary @- <<EOF
|
||||
{
|
||||
"msgtype": "markdown",
|
||||
"markdown": {
|
||||
|
|
@ -48,7 +48,9 @@ steps:
|
|||
}
|
||||
EOF
|
||||
when:
|
||||
status: [ success, failure ]
|
||||
status:
|
||||
- success
|
||||
- failure
|
||||
|
||||
trigger:
|
||||
branch:
|
||||
|
|
|
|||
Loading…
Reference in New Issue