corrupt952/Retry Command

Retries a shell command on failure with real-time output streaming

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jun 29, 2026
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: corrupt952/actions-retry-command@a83e67b2e2c26a4e69d1b6bbf77e6464bf9602b9 # v2.0.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
commandThe command to executeyes
working_directoryWorking directory for command executionno""
max_attemptsMaximum number of retry attemptsno5
retry_intervalSeconds to wait between retries. Supports expressions (e.g., attempt * 2, 5 + random(10))no5
timeoutPer-attempt timeout in seconds (empty = no timeout)no""
shellShell to use for command execution (bash, sh)nobash
retry_on_exit_codeComma-separated exit codes that trigger retry (empty = any non-zero)no""
namedescription
exit_codeExit code of the last command execution
resultCombined stdout and stderr of the last command execution