File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 22$testPath = Resolve-Path -Path "$PSScriptRoot/tests/PSScriptAnalyzer" | Select-Object -ExpandProperty Path
33$path = [string]::IsNullOrEmpty($env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_Path) ? '.' : $env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_Path
44$codePath = Resolve-Path -Path $path | Select-Object -ExpandProperty Path
5- $settingsFilePath = Join-Path -Path $codePath -ChildPath $env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath
65
76[pscustomobject]@{
87 CodePath = $codePath
98 TestPath = $testPath
10- SettingsFilePath = $settingsFilePath
9+ SettingsFilePath = $env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath
1110} | Format-List | Out-String
1211
13- if (!(Test-Path -Path $settingsFilePath )) {
14- Write-Error "Settings file not found at path: $settingsFilePath "
12+ if (!(Test-Path -Path $env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath )) {
13+ Write-Error "Settings file not found at path: $env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath "
1514 exit 1
1615}
1716
1817Set-GitHubOutput -Name CodePath -Value $codePath
1918Set-GitHubOutput -Name TestPath -Value $testPath
20- Set-GitHubOutput -Name SettingsFilePath -Value $settingsFilePath
19+ Set-GitHubOutput -Name SettingsFilePath -Value $env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath
You can’t perform that action at this time.
0 commit comments