refactor(actions): standardize configuration file formatting and defaults

- Change single quotes to double quotes for consistency in `name`, `description`, and `author` fields
- Update `port` and `proxy_port` default values to be strings instead of numbers
- Remove default values for `use_insecure_cipher`, `rm`, `debug`, `strip_components`, `overwrite`, and `tar_dereference` fields
- Add default value `"tar"` for `tar_exec` field

Signed-off-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
appleboy 2024-10-28 22:28:31 +08:00
parent c6ff96b7f6
commit 93e17a47f9
No known key found for this signature in database
1 changed files with 40 additions and 47 deletions

View File

@ -1,84 +1,77 @@
name: 'SCP Command to Transfer Files' name: "SCP Command to Transfer Files"
description: 'How to Use SCP Command to Transfer Files/Folders in Linux' description: "How to Use SCP Command to Transfer Files/Folders in Linux"
author: 'Bo-Yi Wu' author: "Bo-Yi Wu"
inputs: inputs:
host: host:
description: 'scp remote host' description: "scp remote host"
port: port:
description: 'scp remote port' description: "scp remote port"
default: 22 default: "22"
username: username:
description: 'scp username' description: "scp username"
password: password:
description: 'scp password' description: "scp password"
timeout: timeout:
description: 'timeout for ssh to remote host' description: "timeout for ssh to remote host"
default: "30s" default: "30s"
command_timeout: command_timeout:
description: 'timeout for scp command' description: "timeout for scp command"
default: "10m" default: "10m"
key: key:
description: 'content of ssh private key. ex raw content of ~/.ssh/id_rsa' description: "content of ssh private key. ex raw content of ~/.ssh/id_rsa"
key_path: key_path:
description: 'path of ssh private key' description: "path of ssh private key"
passphrase: passphrase:
description: 'ssh key passphrase' description: "ssh key passphrase"
fingerprint: fingerprint:
description: 'fingerprint SHA256 of the host public key, default is to skip verification' description: "fingerprint SHA256 of the host public key, default is to skip verification"
use_insecure_cipher: use_insecure_cipher:
description: 'include more ciphers with use_insecure_cipher' description: "include more ciphers with use_insecure_cipher"
default: false
target: target:
description: 'target path on the server, must be a directory path.' description: "target path on the server, must be a directory path."
source: source:
description: 'scp file list' description: "scp file list"
rm: rm:
description: 'remove target folder before upload data' description: "remove target folder before upload data"
default: false
debug: debug:
description: 'enable debug message' description: "enable debug message"
default: false
strip_components: strip_components:
description: 'remove the specified number of leading path elements' description: "remove the specified number of leading path elements"
default: 0
overwrite: overwrite:
description: 'use --overwrite flag with tar' description: "use --overwrite flag with tar"
default: false
tar_dereference: tar_dereference:
description: 'use --dereference flag with tar' description: "use --dereference flag with tar"
default: false
tar_tmp_path: tar_tmp_path:
description: 'temporary path for tar file on the dest host' description: "temporary path for tar file on the dest host"
tar_exec: tar_exec:
description: 'temporary path for tar file on the dest host' description: "temporary path for tar file on the dest host"
default: 'tar' default: "tar"
proxy_host: proxy_host:
description: 'ssh proxy remote host' description: "ssh proxy remote host"
proxy_port: proxy_port:
description: 'ssh proxy remote port' description: "ssh proxy remote port"
default: 22 default: "22"
proxy_username: proxy_username:
description: 'ssh proxy username' description: "ssh proxy username"
proxy_password: proxy_password:
description: 'ssh proxy password' description: "ssh proxy password"
proxy_passphrase: proxy_passphrase:
description: 'ssh proxy key passphrase' description: "ssh proxy key passphrase"
proxy_timeout: proxy_timeout:
description: 'timeout for ssh to proxy host' description: "timeout for ssh to proxy host"
default: "30s" default: "30s"
proxy_key: proxy_key:
description: 'content of ssh proxy private key. ex raw content of ~/.ssh/id_rsa' description: "content of ssh proxy private key. ex raw content of ~/.ssh/id_rsa"
proxy_key_path: proxy_key_path:
description: 'path of ssh proxy private key' description: "path of ssh proxy private key"
proxy_fingerprint: proxy_fingerprint:
description: 'fingerprint SHA256 of the host public key, default is to skip verification' description: "fingerprint SHA256 of the host public key, default is to skip verification"
proxy_use_insecure_cipher: proxy_use_insecure_cipher:
description: 'include more ciphers with use_insecure_cipher' description: "include more ciphers with use_insecure_cipher"
default: false
runs: runs:
using: 'docker' using: "docker"
image: 'Dockerfile' image: "Dockerfile"
branding: branding:
icon: 'copy' icon: "copy"
color: 'gray-dark' color: "gray-dark"