File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
hugoalh.GitHubActionsToolkit Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -609,10 +609,10 @@ function Get-GitHubActionsInput {
609
609
break
610
610
}
611
611
' one' {
612
- $InputValue = Get-ChildItem - Path " Env:\INPUT_$Name " - ErrorAction ' SilentlyContinue'
612
+ $InputValue = Get-ChildItem - LiteralPath " Env:\INPUT_$Name " - ErrorAction ' SilentlyContinue'
613
613
if ($null -eq $InputValue ) {
614
614
if ($Require ) {
615
- throw " Input `` $Name `` is not defined!"
615
+ return Write-GitHubActionsFail - Message " Input `` $Name `` is not defined!"
616
616
}
617
617
return $null
618
618
}
@@ -722,7 +722,7 @@ function Get-GitHubActionsState {
722
722
break
723
723
}
724
724
' one' {
725
- $StateValue = Get-ChildItem - Path " Env:\STATE_$Name " - ErrorAction ' SilentlyContinue'
725
+ $StateValue = Get-ChildItem - LiteralPath " Env:\STATE_$Name " - ErrorAction ' SilentlyContinue'
726
726
if ($null -eq $StateValue ) {
727
727
return $null
728
728
}
@@ -1052,7 +1052,7 @@ function Test-GitHubActionsEnvironment {
1052
1052
($null -eq $env: RUNNER_TOOL_CACHE )
1053
1053
) {
1054
1054
if ($Require ) {
1055
- throw ' This process require to execute inside the GitHub Actions environment!'
1055
+ return Write-GitHubActionsFail - Message ' This process require to execute inside the GitHub Actions environment!'
1056
1056
}
1057
1057
return $false
1058
1058
}
You can’t perform that action at this time.
0 commit comments