actions-marketplace-validations/Retry Step

Retry a step on failure or timeout

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
timeout_minutesMinutes to wait before attempt times out. Must only specify either minutes or secondsno
timeout_secondsSeconds to wait before attempt times out. Must only specify either minutes or secondsno
max_attemptsNumber of attempts to make before failing the stepyes3
commandThe command to runyes
retry_wait_secondsNumber of seconds to wait before attempting the next retryno10
shellAlternate shell to use (defaults to powershell on windows, bash otherwise). Supports bash, python, pwsh, sh, cmd, and powershellno
polling_interval_secondsNumber of seconds to wait for each check that command has completed runningno1
retry_onEvent to retry on. Currently supported [any, timeout, error]
warning_on_retryWhether to output a warning on retry, or just output to info. Defaults to truetrue
on_retry_commandCommand to run before a retry (such as a cleanup script). Any error thrown from retry command is caught and surfaced as a warning.no
continue_on_errorExits successfully even if an error occurs. Same as native continue-on-error behavior, but for use in composite actions. Default is falsefalse
new_command_on_retryCommand to run if the first attempt fails. This command will be called on all subsequent attempts.no
retry_on_exit_codeSpecific exit code to retry on. This will only retry for the given error code and fail immediately other error codes.no
namedescription
total_attemptsThe final number of attempts made
exit_codeThe final exit code returned by the command
exit_errorThe final error returned by the command