feat: .devops/飞书通知.yml

This commit is contained in:
raojing 2022-08-27 17:52:23 +08:00 committed by jianmu
parent 9961a4a11e
commit 103ea8f263
1 changed files with 58 additions and 0 deletions

58
.devops/飞书通知.yml Normal file
View File

@ -0,0 +1,58 @@
version: 2
name: 飞书通知
description: ""
global:
concurrent: false
param:
- ref: number
name: number
type: NUMBER
required: false
value: '"6"'
hidden: true
trigger:
webhook: gitlink@1.0.0
event:
- ref: push
ruleset:
- param-ref: branch
operator: EQ
value: '"master"'
- param-ref: pusher
operator: EQ
value: '"ext.gitlink_user"'
ruleset-operator: AND
workflow:
- ref: start
name: 开始
task: start
- ref: git_clone_0
name: git clone
task: git_clone@1.2.5
input:
remote_url: '"https://gitlink.org.cn/raojing/demo.git"'
ref: '"refs/heads/master"'
commit_id: '""'
depth: 1
needs:
- start
- ref: feishu_notice_interactive_0
name: 飞书通知-消息卡片
task: feishu_notice_interactive@1.0.4
input:
bot_webhook_url: ((feishu.webhook_url))
msg_title: '"飞书通知"'
app_id: ((xxx.xxx))
app_secret: ((xxx.xxx))
image_url: '""'
msg_text: "`分支:${git_clone_0.git_branch}\\nCommitId${git_clone_0.commit_id}`"
msg_markdown: '""'
msg_at_phone_list: '"[]"'
needs:
- git_clone_0
- ref: end
name: 结束
task: end
needs:
- feishu_notice_interactive_0