File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments