add sftp port as configuration
This commit is contained in:
parent
fcca67b1fb
commit
d3bb57111c
@ -17,6 +17,10 @@ inputs:
|
||||
sftp-host:
|
||||
description: "Sftp host"
|
||||
required: true
|
||||
sftp-port:
|
||||
description: "Sftp port"
|
||||
default: "22"
|
||||
required: true
|
||||
runs:
|
||||
using: "docker"
|
||||
image: "Containerfile"
|
||||
|
@ -1,4 +1,4 @@
|
||||
#!/bin/sh
|
||||
set -e
|
||||
|
||||
lftp -e "set sftp:auto-confirm yes; open -u $INPUT_SFTP_USER,$INPUT_SFTP_PW $SFTP_INPUT_HOST; mirror -v --no-perms --delete --reverse $INPUT_SOURCE $INPUT_DESTINATION; quit"
|
||||
lftp -e "set sftp:auto-confirm yes; open -p $INPUT_SFTP_PORT -u $INPUT_SFTP_USER,$INPUT_SFTP_PW $SFTP_INPUT_HOST; mirror -v --no-perms --delete --reverse $INPUT_SOURCE $INPUT_DESTINATION; quit"
|
||||
|
Loading…
Reference in New Issue
Block a user