Skip to content

The Action workflow commands section assumes bash, but pwsh is now the default shell on windows #15355

@jessehouwing

Description

@jessehouwing

Code of Conduct

What article on docs.github.com is affected?

https://github.com/github/docs/blob/main/content/actions/using-workflows/workflow-commands-for-github-actions.md

What part(s) of the article would you like to see updated?

The default shell on Windows ir now pwsh, all of the examples are only for bash. And there are a few caveats. Attached PR adds PowerShell examples

Ideally the page would be split across technology [bash, pwsh, powershell, javascript] and not [linux, mac, windows] cause, like bash, pwsh is also available on all platforms. I couldn't find how to easily make a tech selector for things other than targetPlatform.

Additional information

The default shell on Windows ir now pwsh, all of the examples are only for bash. And there are a few caveats.

Ideally the page would be split across technology [bash, pwsh, powershell, javascript] and not [linux, mac, windows] cause, like bash, pwsh is also available on all platforms. I couldn't find how to easily make a tech selector for things other than targetPlatform.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions