Skip to content

milliewalky/setup-pwsh

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Build and Test

Setup PowerShell (pwsh)

This action downloads, unpacks, and configures PowerShell (pwsh) for use in GitHub Actions workflows. PowerShell is a powerful scripting language and shell developed by Microsoft. PowerShell is unpacked under the temporary directory of a runner.

Usage

- uses: milliewalky/setup-pwsh@v1
  with:
    # PowerShell release tag from its GitHub Releases page e.g. v7.5.0.
    # default: latest
    tag: ""

This action appends PowerShell to a temporary PATH file, thereby selecting a shell in a subsequent step of your defined action.yml file after setting up PowerShell should result in PowerShell becoming available in a somewhat native fashion, given how shells are handled by GitHub Actions runners.

- name: peek PowerShell version
  shell: pwsh
  run: $PSVersionTable.PSVersion

Thus, this works.

License

The scripts and documentation in this project are released under the MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published