Trim and validate DEPLOY_PATH in deploy workflow
Some checks failed
Redeploy Docker Compose / redeploy (push) Failing after 2s

This commit is contained in:
2026-03-26 19:18:55 +01:00
parent 6b02571d50
commit 52ac13d661

View File

@@ -25,6 +25,9 @@ jobs:
shell: bash shell: bash
run: | run: |
set -euo pipefail set -euo pipefail
DEPLOY_PATH="$(printf '%s' "$DEPLOY_PATH" | tr -d '\r\n')"
echo "Using DEPLOY_PATH=<$DEPLOY_PATH>"
ls -ld "$DEPLOY_PATH"
cd "$DEPLOY_PATH" cd "$DEPLOY_PATH"
git fetch origin "$DEPLOY_BRANCH" git fetch origin "$DEPLOY_BRANCH"
git checkout "$DEPLOY_BRANCH" git checkout "$DEPLOY_BRANCH"