Skip to content

Commit 004b65b

Browse files
added bash -l -c for script run command
1 parent 64ec7f6 commit 004b65b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

action.yml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -213,13 +213,14 @@ runs:
213213
POST_COMMAND=${{inputs.post_deploy_commands}}
214214
HEALTH_CHECK=${{inputs.enable_health_check}}
215215
DEPLOYER_SH="php /$DEPLOYER_APP_DIR/bin/init mwp:deployer"
216-
217-
OPTIONS="--destDir=$DEST_DIR --postDeploymentCommand=$POST_COMMAND"
218-
if [ "$HEALTH_CHECK" == "no" ]; then
216+
217+
OPTIONS="--destDir=$DEST_DIR"
218+
if [ "$HEALTH_CHECK" = "no" ]; then
219219
OPTIONS="$OPTIONS --skipHealthCheck"
220220
fi
221-
222-
ssh -i "$TEMP_KEY_FILE" -o StrictHostKeyChecking=no "$SSH_USER@$SSH_HOST" $DEPLOYER_SH $TAR_NAME $OPTIONS
221+
222+
ssh -i "$TEMP_KEY_FILE" -o StrictHostKeyChecking=no "$SSH_USER@$SSH_HOST" \
223+
"bash -l -c '$DEPLOYER_SH $TAR_NAME \"$OPTIONS\"'"
223224
224225
rm -f $TEMP_KEY_FILE
225226

0 commit comments

Comments
 (0)