Fix Actions deploy SSH quoting
This commit is contained in:
@@ -56,8 +56,8 @@ jobs:
|
|||||||
DEPLOY_USER: ${{ secrets.IMPORTARR_DEPLOY_USER }}
|
DEPLOY_USER: ${{ secrets.IMPORTARR_DEPLOY_USER }}
|
||||||
run: >-
|
run: >-
|
||||||
ssh -p "$DEPLOY_PORT" -o BatchMode=yes "$DEPLOY_USER@$DEPLOY_HOST"
|
ssh -p "$DEPLOY_PORT" -o BatchMode=yes "$DEPLOY_USER@$DEPLOY_HOST"
|
||||||
sudo -n /bin/sh -c 'set -eu; cd /opt/importarr/repo;
|
"sudo -n /bin/sh -c 'set -eu; cd /opt/importarr/repo;
|
||||||
test -z "$(git status --porcelain)";
|
test -z \"\$(git status --porcelain)\";
|
||||||
git fetch --prune origin main;
|
git fetch --prune origin main;
|
||||||
git checkout -B main origin/main;
|
git checkout -B main origin/main;
|
||||||
exec /bin/sh deploy/repo-upgrade.sh'
|
exec /bin/sh deploy/repo-upgrade.sh'"
|
||||||
|
|||||||
Reference in New Issue
Block a user