From 9059bd394150432b51a2eb8028df466fe08bea18 Mon Sep 17 00:00:00 2001 From: Vaesion <928874202@qq.com> Date: Fri, 26 Aug 2022 14:38:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20.devops/=E9=A3=9E=E4=B9=A6=E9=80=9A?= =?UTF-8?q?=E7=9F=A5.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/飞书通知.yml | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .devops/飞书通知.yml diff --git a/.devops/飞书通知.yml b/.devops/飞书通知.yml new file mode 100644 index 0000000..146d84c --- /dev/null +++ b/.devops/飞书通知.yml @@ -0,0 +1,51 @@ +version: 2 +name: 飞书通知 +description: "" +global: + concurrent: 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 +