mirror of
				https://github.com/appleboy/scp-action.git
				synced 2025-10-23 08:55:54 +08:00 
			
		
		
		
	docs: update default value
This commit is contained in:
		@@ -12,8 +12,10 @@ inputs:
 | 
				
			|||||||
    description: 'scp password'
 | 
					    description: 'scp password'
 | 
				
			||||||
  timeout:
 | 
					  timeout:
 | 
				
			||||||
    description: 'timeout for ssh to remote host'
 | 
					    description: 'timeout for ssh to remote host'
 | 
				
			||||||
 | 
					    default: "30s"
 | 
				
			||||||
  command_timeout:
 | 
					  command_timeout:
 | 
				
			||||||
    description: 'timeout for scp command'
 | 
					    description: 'timeout for scp command'
 | 
				
			||||||
 | 
					    default: "1m"
 | 
				
			||||||
  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:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -4,9 +4,6 @@ set -eu
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export GITHUB="true"
 | 
					export GITHUB="true"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
[ -z "$INPUT_TIMEOUT" ] && export INPUT_TIMEOUT="30s"
 | 
					 | 
				
			||||||
[ -z "$INPUT_COMMAND_TIMEOUT" ] && export INPUT_COMMAND_TIMEOUT="1m"
 | 
					 | 
				
			||||||
[ -z "$INPUT_STRIP_COMPONENTS" ] && export INPUT_COMMAND_TIMEOUT=0
 | 
					 | 
				
			||||||
[ -n "$INPUT_STRIP_COMPONENTS" ] && export INPUT_STRIP_COMPONENTS=$((INPUT_STRIP_COMPONENTS + 0))
 | 
					[ -n "$INPUT_STRIP_COMPONENTS" ] && export INPUT_STRIP_COMPONENTS=$((INPUT_STRIP_COMPONENTS + 0))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
sh -c "/bin/drone-scp $*"
 | 
					sh -c "/bin/drone-scp $*"
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user