From e2d19c5738dae84d956333be629dc7f099e9920a Mon Sep 17 00:00:00 2001 From: hang <872297557@qq.com> Date: Thu, 5 Feb 2026 13:12:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=89=93=E5=8C=85=E9=80=9A?= =?UTF-8?q?=E7=9F=A52?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- irc_api.drone.yml | 42 ++++++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/irc_api.drone.yml b/irc_api.drone.yml index 767e57469..f56a236f0 100644 --- a/irc_api.drone.yml +++ b/irc_api.drone.yml @@ -5,7 +5,7 @@ name: ssh-linux-test-hir-publish platform: os: linux arch: amd64 - + clone: disable: true @@ -16,26 +16,26 @@ server: from_secret: test_ssh_pwd steps: -- name: publish-test-hir - commands: - - bash /opt/1panel/xc-deploy-new/Test_HIR/devops-publish/test-branch-to-test.sh || echo "publish failed" + - name: publish-test-hir + commands: + - bash /opt/1panel/xc-deploy-new/Test_HIR/devops-publish/test-branch-to-test.sh || echo "publish failed" -- name: notify-wecom - commands: - - | - STATUS=$DRONE_BUILD_STATUS + - name: notify-wecom + commands: + - | + STATUS="$DRONE_BUILD_STATUS" - if [ "$STATUS" = "success" ]; then - MSG="🟢 Test_HIR 发布成功" - COLOR="info" - else - MSG="🔴 Test_HIR 发布失败" - COLOR="warning" - fi + if [ "$STATUS" = "success" ]; then + MSG="🟢 Test_HIR 发布成功" + COLOR="info" + else + MSG="🔴 Test_HIR 发布失败" + COLOR="warning" + fi - curl -X POST "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=cdd97aab-d256-4f07-9145-a0a2b1555322" \ - -H "Content-Type: application/json" \ - -d @- <