You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Setup PowerShell Toolkit
v1.4.0
Releases | Latest () | Pre () |
---|---|---|
A GitHub Action to setup PowerShell module hugoalh.GitHubActionsToolkit
(GitHub)(PowerShell Gallery).
โ Important: This documentation is v1.4.0 based; To view other version's documentation, please visit the versions list and select the correct version.
- GitHub Actions Runner >= v2.303.0
- PowerShell >= v7.2.0
jobs:
job_id:
runs-on: "________" # Any
steps:
- uses: "hugoalh-studio/setup-powershell-toolkit-ghaction@<Version>"
[Optional] <String = "Latest">
Target version, by Semantic Versioning (SemVer) 2.0.0 with optional modifier; Default to the latest version.
Latest
: Latest version<Ma.Mi.Pa-PR+Bu
: Less than versionMa.Mi.Pa-PR+Bu
<=Ma.Mi.Pa-PR+Bu
: Less than or equal versionMa.Mi.Pa-PR+Bu
Ma.Mi.Pa-PR+Bu
/=Ma.Mi.Pa-PR+Bu
: Equal versionMa.Mi.Pa-PR+Bu
>=Ma.Mi.Pa-PR+Bu
: Greater than or equal versionMa.Mi.Pa-PR+Bu
>Ma.Mi.Pa-PR+Bu
: Greater than versionMa.Mi.Pa-PR+Bu
^Ma.Mi.Pa-PR+Bu
: Between versionMa.Mi.Pa-PR+Bu
and major equitant latest version~Ma.Mi.Pa-PR+Bu
: Between versionMa.Mi.Pa-PR+Bu
and minor equitant latest version
[Optional] <Boolean = False>
Whether to allow target pre release version.
[Optional] <Boolean = True>
Whether to keep the setting that modified by this action.
N/A
jobs:
job_id:
name: "Hello World"
runs-on: "ubuntu-latest"
steps:
- name: "Setup PowerShell Toolkit"
uses: "hugoalh-studio/setup-powershell-toolkit-ghaction@v1.4.0"
- run: |
Import-Module -Name 'hugoalh.GitHubActionsToolkit' -Scope 'Local'
Write-GitHubActionsNotice -Message 'Hello, world!'
shell: "pwsh"