mirror of
https://github.com/appleboy/ssh-action.git
synced 2026-07-18 02:49:57 +08:00
feat: optional retry on ssh connection failure
This commit is contained in:
parent
1530429296
commit
c672036ff2
2 changed files with 107 additions and 7 deletions
|
|
@ -84,6 +84,12 @@ inputs:
|
|||
version:
|
||||
description: |
|
||||
The version of drone-ssh to use.
|
||||
retry_attempts:
|
||||
description: "Number of retry attempts after the initial SSH command fails."
|
||||
default: "0"
|
||||
retry_delay:
|
||||
description: "Delay between retry attempts"
|
||||
default: "0s"
|
||||
|
||||
outputs:
|
||||
stdout:
|
||||
|
|
@ -138,6 +144,8 @@ runs:
|
|||
INPUT_SYNC: ${{ inputs.sync }}
|
||||
INPUT_CAPTURE_STDOUT: ${{ inputs.capture_stdout }}
|
||||
INPUT_CURL_INSECURE: ${{ inputs.curl_insecure }}
|
||||
INPUT_RETRY_ATTEMPTS: ${{ inputs.retry_attempts }}
|
||||
INPUT_RETRY_DELAY: ${{ inputs.retry_delay }}
|
||||
DRONE_SSH_VERSION: ${{ inputs.version }}
|
||||
|
||||
branding:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue