From 75e67ce4e6b25be1621f6891264ab32e09fb3e7f Mon Sep 17 00:00:00 2001 From: gxl Date: Wed, 3 Jun 2026 08:57:06 +0800 Subject: [PATCH] 12 --- .woodpecker.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yaml b/.woodpecker.yaml index 42a6eb8..3031026 100644 --- a/.woodpecker.yaml +++ b/.woodpecker.yaml @@ -46,9 +46,11 @@ steps: from_secret: 136_ssh_password port: 22 command_timeout: 10m - # 👇 核心黑魔法:利用 SSH 远程执行本地的脚本文件 script: - - bash -s < ./deploy.sh + - | + cat << 'EOF' | bash + $(cat ./deploy.sh) + EOF when: event: push branch: master \ No newline at end of file