Skip to content

Commit bd73f91

Browse files
Add installation and import of modules from platyPS with TrustRepository parameter
1 parent 7daac2e commit bd73f91

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

scripts/main.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
[CmdletBinding()]
66
param()
77

8+
'platyPS' | ForEach-Object {
9+
Install-PSResource -Name $_ -WarningAction SilentlyContinue -TrustRepository -Repository PSGallery
10+
Import-Module -Name $_
11+
}
12+
813
$path = (Join-Path -Path $PSScriptRoot -ChildPath 'helpers') | Get-Item | Resolve-Path -Relative
914
Write-Host "::group::Loading helper scripts from [$path]"
1015
Get-ChildItem -Path $path -Filter '*.ps1' -Recurse | Resolve-Path -Relative | ForEach-Object {

0 commit comments

Comments
 (0)