feat: add SHELL input support

This commit is contained in:
Isaac Levin
2021-01-01 22:57:53 +00:00
committed by GitHub
parent 0aeb89504c
commit 877a0ac37e
6 changed files with 140 additions and 4 deletions

View File

@@ -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