From 16bc8add2ede76485f489011dfc4295ff3891a06 Mon Sep 17 00:00:00 2001 From: wanjia9506 <553039491@qq.com> Date: Tue, 9 May 2023 11:48:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20.devops/=E5=90=88=E5=B9=B6=E8=AF=B7?= =?UTF-8?q?=E6=B1=82=E9=80=9A=E8=BF=87=E5=90=8E=E8=87=AA=E5=8A=A8=E6=9B=B4?= =?UTF-8?q?=E6=96=B0.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devops/合并请求通过后自动更新.yml | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .devops/合并请求通过后自动更新.yml diff --git a/.devops/合并请求通过后自动更新.yml b/.devops/合并请求通过后自动更新.yml new file mode 100644 index 0000000..aecc209 --- /dev/null +++ b/.devops/合并请求通过后自动更新.yml @@ -0,0 +1,35 @@ +version: 2 +name: 合并请求通过后自动更新 +description: 合并请求通过后自动更新 +global: + concurrent: 1 +trigger: + webhook: gitlink@1.0.0 + event: + - ref: pr + ruleset: + - param-ref: merged + operator: EQ + value: "true" + ruleset-operator: AND +workflow: + - ref: start + name: 开始 + task: start + - ref: ssh_cmd_0 + name: ssh执行命令 + task: ssh_cmd@1.1.1 + input: + ssh_pass: ((hnxjy_test_83.password)) + ssh_ip: '"111.8.36.180"' + ssh_port: '"120"' + ssh_user: '"root"' + ssh_cmd: '"cd /root/docusaurus/config/dir/awesometic-docs && git pull"' + needs: + - start + - ref: end + name: 结束 + task: end + needs: + - ssh_cmd_0 +