Skip to main content
Module

x/actionify/mod.ts>Shell

Create and manage your GitHub workflows with TypeScript and Deno.
Go to Latest
enum Shell
import { Shell } from "https://deno.land/x/actionify@0.2.0/mod.ts";

Members

Bash = "bash"

Supports all platforms

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}

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}

Cmd = "cmd"

Windows only

GitHub appends the extension .cmd to your script name and substitutes for {0}. %ComSpec% /D /E:ON /V:OFF /S /C "CALL "{0}"".

PowerShellCore = "pwsh"

Supports all platforms

The PowerShell Core. GitHub appends the extension .ps1 to your script name. pwsh -command ". '{0}'"

PowerShellDesktop = "powershell"

Windows only

The PowerShell Desktop. GitHub appends the extension .ps1 to your script name. powershell -command ". '{0}'".

Python = "python"

Supports all platforms

Executes the python command. python {0}

Sh = "sh"

macOS and Linux only

The fallback behavior for non-Windows platforms if no shell is provided and bash is not found in the path. sh -e {0}