We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Write-Fail
1 parent b632716 commit f539e58Copy full SHA for f539e58
hugoalh.GitHubActionsToolkit/module/parameter.psm1
@@ -63,15 +63,15 @@ Function Get-Input {
63
If ($Null -ieq $InputValueRaw) {
64
If ($Mandatory.IsPresent) {
65
Write-GitHubActionsFail -Message ($MandatoryMessage -f $Name)
66
- Return
+ Throw
67
}
68
Return $Null
69
70
[String]$InputValue = $Trim.IsPresent ? $InputValueRaw.Trim() : $InputValueRaw
71
If ($EmptyStringAsNull.IsPresent -and $InputValue.Length -ieq 0) {
72
73
74
75
76
77
0 commit comments