Skip to content

Commit 31cc45b

Browse files
🩹 [Patch]: Move Debug and Verbose preference settings to the end of the script for better organization
1 parent 41ac2d8 commit 31cc45b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

β€Žscripts/main.ps1β€Ž

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
[CmdletBinding()]
22
param()
33

4-
$DebugPreference = $env:GITHUB_ACTION_INPUT_Debug -eq 'true' ? 'Continue' : 'SilentlyContinue'
5-
$VerbosePreference = $env:GITHUB_ACTION_INPUT_Verbose -eq 'true' ? 'Continue' : 'SilentlyContinue'
64
$env:PSMODULE_GITHUB_SCRIPT = $true
75
Write-Host '━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'
86
'::group::GitHub-Script ┃ Setup GitHub PowerShell'
@@ -79,3 +77,6 @@ LogGroup 'GitHub-Script ┃ GitHub module configuration' {
7977
}
8078

8179
Write-Host '━━━━━━━━━━━━━━━━┻━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━'
80+
81+
$DebugPreference = $env:GITHUB_ACTION_INPUT_Debug -eq 'true' ? 'Continue' : 'SilentlyContinue'
82+
$VerbosePreference = $env:GITHUB_ACTION_INPUT_Verbose -eq 'true' ? 'Continue' : 'SilentlyContinue'

0 commit comments

Comments
Β (0)