@@ -385,8 +385,7 @@ function Invoke-GHActionsScriptGroup {
385
385
Enter-GHActionsLogGroup - Title $Title
386
386
try {
387
387
return $ScriptBlock.Invoke ()
388
- }
389
- finally {
388
+ } finally {
390
389
Exit-GHActionsLogGroup
391
390
}
392
391
}
@@ -412,8 +411,7 @@ function Write-GHActionsError {
412
411
[Parameter ()][uint ]$EndColumn ,
413
412
[Parameter ()][string ]$Title
414
413
)
415
- begin {}
416
- process {
414
+ begin {
417
415
$Properties = @ {}
418
416
if ($File.Length -gt 0 ) {
419
417
$Properties .' file' = $File
@@ -433,6 +431,8 @@ function Write-GHActionsError {
433
431
if ($Title.Length -gt 0 ) {
434
432
$Properties .' title' = $Title
435
433
}
434
+ }
435
+ process {
436
436
Write-GHActionsCommand - Command ' error' - Message $Message - Properties $Properties
437
437
}
438
438
end {}
@@ -456,8 +456,7 @@ function Write-GHActionsNotice {
456
456
[Parameter ()][uint ]$EndColumn ,
457
457
[Parameter ()][string ]$Title
458
458
)
459
- begin {}
460
- process {
459
+ begin {
461
460
$Properties = @ {}
462
461
if ($File.Length -gt 0 ) {
463
462
$Properties .' file' = $File
@@ -477,6 +476,8 @@ function Write-GHActionsNotice {
477
476
if ($Title.Length -gt 0 ) {
478
477
$Properties .' title' = $Title
479
478
}
479
+ }
480
+ process {
480
481
Write-GHActionsCommand - Command ' notice' - Message $Message - Properties $Properties
481
482
}
482
483
end {}
@@ -492,8 +493,7 @@ function Write-GHActionsWarning {
492
493
[Parameter ()][uint ]$EndColumn ,
493
494
[Parameter ()][string ]$Title
494
495
)
495
- begin {}
496
- process {
496
+ begin {
497
497
$Properties = @ {}
498
498
if ($File.Length -gt 0 ) {
499
499
$Properties .' file' = $File
@@ -513,6 +513,8 @@ function Write-GHActionsWarning {
513
513
if ($Title.Length -gt 0 ) {
514
514
$Properties .' title' = $Title
515
515
}
516
+ }
517
+ process {
516
518
Write-GHActionsCommand - Command ' warning' - Message $Message - Properties $Properties
517
519
}
518
520
end {}
0 commit comments