Skip to content

Commit 3f0df2d

Browse files
🩹 [Patch]: Add "import-module Utilitites" for Windows PowerShell (#17)
## Description - Add "import-module Utilitites" for Windows PowerShell. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [x] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent a60b4bf commit 3f0df2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,20 @@ runs:
3131
Write-Host '::group::Loading modules'
3232
Install-Module -Name 'Microsoft.PowerShell.PSResourceGet' -Force -Verbose
3333
Import-Module -Name 'Microsoft.PowerShell.PSResourceGet' -Force -Verbose
34+
3435
$params = @{
3536
Name = 'Utilities'
3637
Repository = 'PSGallery'
3738
TrustRepository = $true
3839
PreRelease = $env:GITHUB_ACTION_INPUT_Prerelease -eq 'true'
3940
Verbose = $true
4041
}
41-
4242
if (-not [string]::IsNullOrEmpty($env:GITHUB_ACTION_INPUT_Version)) {
4343
$params['Version'] = $env:GITHUB_ACTION_INPUT_Version
4444
}
4545
4646
Install-PSResource @params
47+
Import-Module -Name 'Utilities' -Force -Verbose
4748
Write-Host '::endgroup::'
4849
4950
. "$env:GITHUB_ACTION_PATH\scripts\main.ps1" -Verbose

0 commit comments

Comments
 (0)