Skip to content

Commit

Permalink
Update content/actions/using-workflows/workflow-syntax-for-github-act…
Browse files Browse the repository at this point in the history
…ions.md

Co-authored-by: Eric Wieser <wieser.eric@gmail.com>
  • Loading branch information
nikola-jokic and eric-wieser authored Aug 9, 2022
1 parent d087a01 commit a64e576
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,8 @@ You can override the default shell settings in the runner's operating system usi

| Supported platform | `shell` parameter | Description | Command run internally |
|--------------------|-------------------|-------------|------------------------|
| All | `bash` | The default shell on non-Windows platforms with a fallback to `sh`. Bash will be invoked with `bash -e {0}` if the shell parameter is not specified explicitly. When specifying a bash shell on Windows, the bash shell included with Git for Windows is used. | `bash --noprofile --norc -eo pipefail {0}` |
| Linux / macOS | unspecified | The default shell on non-Windows platforms. Note that this runs a different command to when `bash` is specified explicitly. If `bash` is not found in the path, this is treated as `sh`. | `bash -e {0}` |
| All | `bash` | The default shell on non-Windows platforms with a fallback to `sh`. When specifying a bash shell on Windows, the bash shell included with Git for Windows is used. | `bash --noprofile --norc -eo pipefail {0}` |
| All | `pwsh` | The PowerShell Core. {% data variables.product.prodname_dotcom %} appends the extension `.ps1` to your script name. | `pwsh -command ". '{0}'"` |
| All | `python` | Executes the python command. | `python {0}` |
| Linux / macOS | `sh` | The fallback behavior for non-Windows platforms if no shell is provided and `bash` is not found in the path. | `sh -e {0}` |
Expand Down

0 comments on commit a64e576

Please sign in to comment.