From 261742b15c11ff89e1b0bac1862e7910808aefb8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Sun, 29 Mar 2026 14:21:56 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E5=A4=8D=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E6=AD=A5=E9=AA=A4=E7=9A=84=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=85=B3=E7=B3=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 问题: - notify-wechat-success 缺少依赖,导致过早执行 - chmod 命令在容器中可能失败 修复: 1. notify-wechat-success: 添加 depends_on: archive-to-main 2. notify-wechat-failure: 添加 depends_on: deploy-production 3. 使用 'sh scripts/notify-wechat.sh' 替代 chmod +x 后执行 确保通知在所有步骤完成后才执行 --- .woodpecker.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index e6b6b80..d8080bd 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -371,9 +371,10 @@ steps: environment: WECHAT_WEBHOOK: from_secret: wechat_webhook + depends_on: + - archive-to-main commands: - - chmod +x scripts/notify-wechat.sh - - WECHAT_WEBHOOK="$WECHAT_WEBHOOK" ./scripts/notify-wechat.sh success + - sh scripts/notify-wechat.sh success when: event: - push @@ -388,9 +389,10 @@ steps: environment: WECHAT_WEBHOOK: from_secret: wechat_webhook + depends_on: + - deploy-production commands: - - chmod +x scripts/notify-wechat.sh - - WECHAT_WEBHOOK="$WECHAT_WEBHOOK" ./scripts/notify-wechat.sh failure + - sh scripts/notify-wechat.sh failure when: event: - push