From 5f0ba36feac1acc50d712cb230fbe5b863ebc345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Sat, 28 Mar 2026 18:53:56 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dhusky=E5=92=8C?= =?UTF-8?q?=E4=BC=81=E4=B8=9A=E5=BE=AE=E4=BF=A1=E9=80=9A=E7=9F=A5=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 commands 中添加 export HUSKY=0 确保 husky 被禁用 - 修复 MESSAGE_ESCAPED 处理逻辑,避免 shell 解析错误 - 将换行符替换为空格,而不是 \n 字符串 --- .woodpecker.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index d83300e..0ee492a 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -91,6 +91,7 @@ steps: NODE_ENV: production HUSKY: 0 commands: + - export HUSKY=0 - npm ci --omit=dev - npm audit --audit-level=high --omit=dev when: @@ -438,8 +439,8 @@ steps: TIMESTAMP=$(date "+%Y-%m-%d %H:%M:%S") - # 转义特殊字符 - MESSAGE_ESCAPED=$(echo "$MESSAGE" | sed 's/\\/\\\\/g' | sed 's/"/\\"/g' | tr '\n' '\\n') + # 转义特殊字符(简化处理) + MESSAGE_ESCAPED=$(echo "$MESSAGE" | sed 's/\\/\\\\/g' | sed 's/"/\\"/g' | tr '\n' ' ') curl -X POST "$WECHAT_WEBHOOK" \ -H 'Content-Type: application/json' \