diff --git a/README.md b/README.md index 85dc08c..8ad26b9 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,10 @@ Deploy files to an FTP server using GitHub actions Delete files not present in the local folder on the remote folder. Default `"false"`. +### `disable_ssl_certificate_verification` + +Disable SSL certificate verification. Default `"true"`. + ## Example usage ``` diff --git a/action.yml b/action.yml index c69ed76..9a38e09 100644 --- a/action.yml +++ b/action.yml @@ -21,6 +21,10 @@ inputs: description: "Delete files not present in the local folder on the remote folder" required: false default: "false" + disable_ssl_certificate_verification: + description: "Disable SSL certificate verification" + required: false + default: "true" runs: using: "docker" image: "Dockerfile" diff --git a/entrypoint.sh b/entrypoint.sh index b854130..3b2318f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -1,3 +1,3 @@ #!/bin/sh -l -lftp $INPUT_FTP_HOST -u $INPUT_FTP_USERNAME,$INPUT_FTP_PASSWORD -e "mirror --verbose --reverse $([ "$INPUT_DELETE" == true ] && echo "--delete") $INPUT_LOCAL_SOURCE_DIR $INPUT_DIST_TARGET_DIR; exit" \ No newline at end of file +lftp $INPUT_FTP_HOST -u $INPUT_FTP_USERNAME,$INPUT_FTP_PASSWORD -e "$([ "$INPUT_DISABLE_SSL_CERTIFICATE_VERIFICATION" == true ] && echo "set ssl:verify-certificate false;") mirror --verbose --reverse $([ "$INPUT_DELETE" == true ] && echo "--delete") $INPUT_LOCAL_SOURCE_DIR $INPUT_DIST_TARGET_DIR; exit" \ No newline at end of file