Skip to content

Commit

Permalink
✨ New option - Disable SSL certificate verification
Browse files Browse the repository at this point in the history
  • Loading branch information
Kévin Painchaud committed Apr 11, 2020
1 parent 3b0ad87 commit 7878e39
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

```
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -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"
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"

0 comments on commit 7878e39

Please sign in to comment.