mirror of
https://github.com/nick-fields/retry.git
synced 2026-02-11 23:55:28 +00:00
feat: add SHELL input support
This commit is contained in:
22
README.md
22
README.md
@@ -20,10 +20,20 @@ Retries an Action step on failure or timeout. This is currently intended to repl
|
||||
|
||||
**Required** The command to run
|
||||
|
||||
### `OS`
|
||||
|
||||
**Required** The OS passed from the runner (runner.OS)
|
||||
|
||||
### `retry_wait_seconds`
|
||||
|
||||
**Optional** Number of seconds to wait before attempting the next retry. Defaults to `10`
|
||||
|
||||
### `shell`
|
||||
|
||||
**Optional** Shell to use to execute `command`. Defaults to `pwsh`. See [here](https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#using-a-specific-shell) for shell options
|
||||
required: false
|
||||
default: pwsh
|
||||
|
||||
### `polling_interval_seconds`
|
||||
|
||||
**Optional** Number of seconds to wait while polling for command result. Defaults to `1`
|
||||
@@ -52,6 +62,18 @@ The final error returned by the command
|
||||
|
||||
## Examples
|
||||
|
||||
### Shell
|
||||
|
||||
```yaml
|
||||
uses: nick-invision/retry@v2
|
||||
with:
|
||||
timeout_minutes: 10
|
||||
max_attempts: 3
|
||||
os: ${{ runner.os }}
|
||||
shell: pwsh
|
||||
command: dir
|
||||
```
|
||||
|
||||
### Timeout in minutes
|
||||
|
||||
```yaml
|
||||
|
||||
Reference in New Issue
Block a user