Skip to content

Commit 85c9979

Browse files
🩹 [Patch]: Add logging for environment inputs in init script
1 parent 92a65d4 commit 85c9979

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/init.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ begin {
77
$PSStyle.OutputRendering = 'Ansi'
88

99
# Configure ErrorView based on input parameter
10+
LogGroup "Inputs:" {
11+
Get-ChildItem env: | Where-Object { $_ -like 'PSMODULE_GITHUB_SCRIPT_INPUT_*' } | Out-String
12+
}
1013
if (-not [string]::IsNullOrEmpty($env:PSMODULE_GITHUB_SCRIPT_INPUT_ErrorView)) {
1114
$validViews = @('NormalView', 'CategoryView', 'ConciseView', 'DetailedView')
1215
$errorViewSetting = $env:PSMODULE_GITHUB_SCRIPT_INPUT_ErrorView

0 commit comments

Comments
 (0)