Trim and validate DEPLOY_PATH in deploy workflow
Some checks failed
Redeploy Docker Compose / redeploy (push) Failing after 2s
Some checks failed
Redeploy Docker Compose / redeploy (push) Failing after 2s
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user