From f39b4ad62f655ca12c6e0b0d3a1384ba492aecd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Lohrer?= Date: Tue, 28 Apr 2026 11:03:14 +0200 Subject: [PATCH] fix(ci): FTP-secrets vor URL-bau trimmen curl hat den ersten upload mit "URL using bad/illegal format" abgebrochen. Wahrscheinliche ursache: trailing newline in einem der FTP-secrets (passiert beim copy-paste in die GitHub-secrets-UI, wenn der quell-string ein \n am ende hatte). tr -d '\r\n' entfernt CR/LF aus allen vier FTP-vars, bevor sie in die URL gehen. Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/build-deploy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/build-deploy.yml b/.github/workflows/build-deploy.yml index acb3f99..45b6c4c 100644 --- a/.github/workflows/build-deploy.yml +++ b/.github/workflows/build-deploy.yml @@ -108,6 +108,13 @@ jobs: FTP_PASS: ${{ secrets[steps.target.outputs.ftp_pass_secret] }} FTP_PATH: ${{ secrets[steps.target.outputs.ftp_path_secret] }} run: | + # Trim secrets: GitHub-secrets behalten manchmal trailing-newlines, + # die beim copy-paste reingerutscht sind. tr -d '\r\n' entfernt + # alle CR/LF, gegen "URL using bad/illegal format" beim curl. + FTP_HOST=$(printf '%s' "$FTP_HOST" | tr -d '\r\n') + FTP_USER=$(printf '%s' "$FTP_USER" | tr -d '\r\n') + FTP_PASS=$(printf '%s' "$FTP_PASS" | tr -d '\r\n') + FTP_PATH=$(printf '%s' "$FTP_PATH" | tr -d '\r\n') if [ -z "$FTP_HOST" ] || [ -z "$FTP_USER" ] || [ -z "$FTP_PASS" ] || [ -z "$FTP_PATH" ]; then echo "FEHLER: FTP-Secrets fuer target '${{ inputs.target }}' nicht gesetzt." >&2 exit 1