Skip to content

Commit b013966

Browse files
🩹 [Patch]: Ensure SettingsFilePath is set to an empty string when not provided and update output accordingly
1 parent 9abfd71 commit b013966

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎scripts/main.ps1‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ if (-not [string]::IsNullOrEmpty($env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_Setti
1212
} catch {
1313
Write-Warning "Settings file not found at path: $($env:PSMODULE_INVOKE_SCRIPTANALYZER_INPUT_SettingsFilePath). Using default settings."
1414
}
15+
} else {
16+
$settingsFilePath = ''
1517
}
1618

1719
if ($null -eq $settingsFilePath) {
@@ -26,4 +28,4 @@ if ($null -eq $settingsFilePath) {
2628

2729
Set-GitHubOutput -Name CodePath -Value $codePath
2830
Set-GitHubOutput -Name TestPath -Value $testPath
29-
Set-GitHubOutput -Name SettingsFilePath -Value ($null -eq $settingsFilePath ? '' : $settingsFilePath)
31+
Set-GitHubOutput -Name SettingsFilePath -Value $settingsFilePath

0 commit comments

Comments
 (0)