corrupt952/Retry Command
Retries a shell command on failure with real-time output streaming
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jun 29, 2026
- License
- None
Pinned Snippet
uses: corrupt952/actions-retry-command@a83e67b2e2c26a4e69d1b6bbf77e6464bf9602b9 # v2.0.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| command | The command to execute | yes | — |
| working_directory | Working directory for command execution | no | "" |
| max_attempts | Maximum number of retry attempts | no | 5 |
| retry_interval | Seconds to wait between retries. Supports expressions (e.g., attempt * 2, 5 + random(10)) | no | 5 |
| timeout | Per-attempt timeout in seconds (empty = no timeout) | no | "" |
| shell | Shell to use for command execution (bash, sh) | no | bash |
| retry_on_exit_code | Comma-separated exit codes that trigger retry (empty = any non-zero) | no | "" |
Outputs
| name | description |
|---|---|
| exit_code | Exit code of the last command execution |
| result | Combined stdout and stderr of the last command execution |