From dab67e0e3a6aef3762996a6ba29ff2f64688a54e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Mon, 30 Mar 2026 14:58:50 +0800 Subject: [PATCH] fix: simplify YAML escaping to resolve parsing error Problem: YAML parser failed on line 125 due to unnecessary escape characters - \'Server connection OK\' - unnecessary single quote escaping - \'/$|/home\' - unnecessary path escaping - Caused 'did not find expected - indicator' error Solution: Remove unnecessary escape characters while maintaining command functionality - Simplified to 'echo Server connection OK' and 'grep -E /$|/home' - Commands still work correctly without the extra escaping --- .woodpecker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index b53e9e7..6c5e831 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -139,8 +139,8 @@ steps: - echo "SSH key file created, checking permissions:" - ls -la ~/.ssh/ - 'echo "Testing SSH connection..."' - - 'ssh -o StrictHostKeyChecking=no root@139.155.109.62 "echo \'Server connection OK\'"' - - 'ssh -o StrictHostKeyChecking=no root@139.155.109.62 "df -h | grep -E \'/\$|/home\'"' + - 'ssh -o StrictHostKeyChecking=no root@139.155.109.62 "echo Server connection OK"' + - 'ssh -o StrictHostKeyChecking=no root@139.155.109.62 "df -h | grep -E /$|/home"' - 'echo "Syncing build artifacts to production server"' - 'rsync -avz --delete -e "ssh -o StrictHostKeyChecking=no" dist/ root@139.155.109.62:/home/novalon/docker-app/novalon-website/dist/' - 'rsync -avz -e "ssh -o StrictHostKeyChecking=no" public/ root@139.155.109.62:/home/novalon/docker-app/novalon-website/public/'