Skip to content

Commit 26f3c8d

Browse files
Enhance PowerShell script for module management
1 parent 14a0e06 commit 26f3c8d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/__call-common-lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,9 @@ jobs:
362362
run: |
363363
# PSScriptAnalyzer is already installed on GitHub runners
364364
if ($env:RUNNER_NAME -notlike 'GitHub Actions*') {
365+
Get-PSRepository -Name PSGallery | Format-List
366+
Find-Module -Name PSScriptAnalyzer -Repository PSGallery
367+
365368
Register-PSRepository -Default -InstallationPolicy Trusted
366369
Register-PSRepository -Name PSGallery -SourceLocation https://www.powershellgallery.com/api/v2/ -InstallationPolicy Trusted
367370
Install-Module -Name PSScriptAnalyzer -Force

0 commit comments

Comments
 (0)