Skip to content

Commit d875fdb

Browse files
🩹 [Patch]: Add ErrorView environment variable handling in init script
1 parent a5936c3 commit d875fdb

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ runs:
9191
PSMODULE_GITHUB_SCRIPT_INPUT_PreserveCredentials: ${{ inputs.PreserveCredentials }}
9292
run: |
9393
# ${{ inputs.Name }}
94+
$ErrorView = $env:PSMODULE_GITHUB_SCRIPT_INPUT_ErrorView
9495
try {
9596
${{ github.action_path }}/scripts/init.ps1
9697
${{ github.action_path }}/scripts/info.ps1

scripts/init.ps1

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

99
# Configure ErrorView based on input parameter
10-
Get-ChildItem env: | Where-Object { $_.Name -like 'PSMODULE_GITHUB_SCRIPT_INPUT_*' } | Out-String
1110
if (-not [string]::IsNullOrEmpty($env:PSMODULE_GITHUB_SCRIPT_INPUT_ErrorView)) {
1211
$validViews = @('NormalView', 'CategoryView', 'ConciseView', 'DetailedView')
1312
$errorViewSetting = $env:PSMODULE_GITHUB_SCRIPT_INPUT_ErrorView

0 commit comments

Comments
 (0)