Skip to content

Commit d38bc7c

Browse files
committed
20230323D
1 parent be6a331 commit d38bc7c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

hugoalh.GitHubActionsToolkit/module/environment-variable.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Function Add-PATH {
3737
$Path |
3838
Select-Object -Unique
3939
)) {
40-
If (!$NoValidator.IsPresent -and ![System.IO.Path]::IsPathRooted($Item) -and !(Test-Path -Path $Item -PathType 'Container' -IsValid)) {
40+
If (!$NoValidator.IsPresent -and !([System.IO.Path]::IsPathRooted($Item) -and (Test-Path -Path $Item -PathType 'Container' -IsValid))) {
4141
Write-Error -Message "``$Item`` is not a valid PATH!" -Category 'SyntaxError'
4242
Continue
4343
}

hugoalh.GitHubActionsToolkit/module/utility.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Function Get-WebhookEventPayload {
7272
Param (
7373
[Alias('ToHashtable')][Switch]$AsHashtable
7474
)
75-
If ([System.IO.Path]::IsPathFullyQualified($Env:GITHUB_EVENT_PATH)) {
75+
If (![System.IO.Path]::IsPathFullyQualified($Env:GITHUB_EVENT_PATH)) {
7676
Write-Error -Message 'Unable to get the GitHub Actions webhook event payload: Environment path `GITHUB_EVENT_PATH` is not defined or not contain a valid file path!' -Category 'ResourceUnavailable'
7777
Return
7878
}

0 commit comments

Comments
 (0)