2020-02-13 01:57:27 -05:00
|
|
|
name: Retry Step
|
|
|
|
|
description: 'Retry a step on failure or timeout'
|
|
|
|
|
inputs:
|
|
|
|
|
timeout_minutes:
|
2020-09-29 11:05:03 -04:00
|
|
|
description: Minutes to wait before attempt times out. Must only specify either minutes or seconds
|
|
|
|
|
required: false
|
|
|
|
|
timeout_seconds:
|
|
|
|
|
description: Seconds to wait before attempt times out. Must only specify either minutes or seconds
|
|
|
|
|
required: false
|
2020-02-13 01:57:27 -05:00
|
|
|
max_attempts:
|
|
|
|
|
description: Number of attempts to make before failing the step
|
|
|
|
|
required: true
|
|
|
|
|
default: 3
|
|
|
|
|
command:
|
|
|
|
|
description: The command to run
|
|
|
|
|
required: true
|
|
|
|
|
retry_wait_seconds:
|
|
|
|
|
description: Number of seconds to wait before attempting the next retry
|
|
|
|
|
required: false
|
|
|
|
|
default: 10
|
2021-01-01 22:57:53 +00:00
|
|
|
shell:
|
2021-01-03 21:00:31 -05:00
|
|
|
description: Alternate shell to use (defaults to powershell on windows, bash otherwise). Supports bash, python, pwsh, sh, cmd, and powershell
|
2021-01-01 22:57:53 +00:00
|
|
|
required: false
|
2020-02-13 01:57:27 -05:00
|
|
|
polling_interval_seconds:
|
|
|
|
|
description: Number of seconds to wait for each check that command has completed running
|
|
|
|
|
required: false
|
|
|
|
|
default: 1
|
2020-09-29 10:48:02 -04:00
|
|
|
retry_on:
|
2020-09-29 14:56:52 -04:00
|
|
|
description: Event to retry on. Currently supported [any, timeout, error]
|
2020-11-18 10:25:11 -05:00
|
|
|
warning_on_retry:
|
|
|
|
|
description: Whether to output a warning on retry, or just output to info. Defaults to true
|
|
|
|
|
default: true
|
2021-01-04 21:32:32 -05:00
|
|
|
on_retry_command:
|
|
|
|
|
description: Command to run before a retry (such as a cleanup script). Any error thrown from retry command is caught and surfaced as a warning.
|
|
|
|
|
required: false
|
2021-06-10 18:08:08 -04:00
|
|
|
continue_on_error:
|
|
|
|
|
description: Exits successfully even if an error occurs. Same as native continue-on-error behavior, but for use in composite actions. Default is false
|
|
|
|
|
default: false
|
2021-12-08 20:15:21 -08:00
|
|
|
new_command_on_retry:
|
|
|
|
|
description: Command to run if the first attempt fails. This command will be called on all subsequent attempts.
|
|
|
|
|
required: false
|
2022-04-25 22:10:55 -04:00
|
|
|
retry_on_exit_code:
|
|
|
|
|
description: Specific exit code to retry on. This will only retry for the given error code and fail immediately other error codes.
|
|
|
|
|
required: false
|
2020-09-29 10:48:02 -04:00
|
|
|
outputs:
|
|
|
|
|
total_attempts:
|
|
|
|
|
description: The final number of attempts made
|
|
|
|
|
exit_code:
|
|
|
|
|
description: The final exit code returned by the command
|
|
|
|
|
exit_error:
|
2020-09-29 10:49:30 -04:00
|
|
|
description: The final error returned by the command
|
2020-02-13 01:57:27 -05:00
|
|
|
runs:
|
2024-01-31 11:50:52 -05:00
|
|
|
using: 'node20'
|
2021-06-10 18:08:08 -04:00
|
|
|
main: 'dist/index.js'
|