File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,17 @@ $path = [string]::IsNullOrEmpty($env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_Path)
44$codePath = Resolve-Path - Path $path | Select-Object - ExpandProperty Path
55$settingsFilePath = Join-Path - Path $codePath - ChildPath $env: PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath
66
7- if (! (Test-Path - Path $settingsFilePath )) {
8- Write-Error " Settings file not found at path: $settingsFilePath "
9- exit 1
10- }
11-
127[pscustomobject ]@ {
138 CodePath = $codePath
149 TestPath = $testPath
1510 SettingsFilePath = $settingsFilePath
1611} | Format-List | Out-String
1712
13+ if (! (Test-Path - Path $settingsFilePath )) {
14+ Write-Error " Settings file not found at path: $settingsFilePath "
15+ exit 1
16+ }
17+
1818Set-GitHubOutput - Name CodePath - Value $codePath
1919Set-GitHubOutput - Name TestPath - Value $testPath
2020Set-GitHubOutput - Name SettingsFilePath - Value $settingsFilePath
You can’t perform that action at this time.
0 commit comments