File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
hugoalh.GitHubActionsToolkit/module Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ Function Write-Fail {
232
232
[AllowEmptyString ()][AllowNull ()][ValidatePattern (' ^.*$' , ErrorMessage = ' Value is not a single line string!' )][Alias (' Header' )][String ]$Title ,
233
233
[Parameter (ValueFromPipelineByPropertyName = $True )][AllowEmptyString ()][AllowNull ()][String ]$Summary ,
234
234
[ScriptBlock ]$Finally = {},
235
- [Int16 ]$ExitCode = 1
235
+ [ValidateScript ({ $_ -ine 0 } , ErrorMessage = ' Value is not a valid non-success exit code! ' )][ Int16 ]$ExitCode = 1
236
236
)
237
237
Write-Annotation - Type ' error' - Message $Message - File $File - Line $Line - Column $Column - EndLine $EndLine - EndColumn $EndColumn - Title $Title - Summary $Summary
238
238
Invoke-Command - ScriptBlock $Finally - ErrorAction ' Continue'
You can’t perform that action at this time.
0 commit comments