Skip to content

Commit 1c84ec3

Browse files
committed
20230206E
1 parent 5a002f0 commit 1c84ec3

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

hugoalh.GitHubActionsToolkit/module/utility.psm1

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,18 +136,18 @@ Function Test-Environment {
136136
Param (
137137
[Switch]$Artifact,
138138
[Switch]$Cache,
139-
[Alias('Oidc')][Switch]$OpenIdConnect,
139+
[Alias('Oidc', 'OpenId')][Switch]$OpenIdConnect,
140140
[Switch]$StepSummary,
141141
[Switch]$ToolCache,
142142
[Alias('Require', 'Required')][Switch]$Mandatory,
143143
[Alias('RequiredMessage', 'RequireMessage')][String]$MandatoryMessage = 'This process requires to invoke inside the GitHub Actions environment!'
144144
)
145-
If (
145+
If (# Some conditions were disabled to provide compatibility, enable those when with runner requirement.
146146
$Env:CI -ine 'true' -or
147147
[String]::IsNullOrWhiteSpace($Env:GITHUB_ACTION_REPOSITORY) -or
148148
[String]::IsNullOrWhiteSpace($Env:GITHUB_ACTION) -or
149149
[String]::IsNullOrWhiteSpace($Env:GITHUB_ACTIONS) -or
150-
[String]::IsNullOrWhiteSpace($Env:GITHUB_ACTOR_ID) -or
150+
# [String]::IsNullOrWhiteSpace($Env:GITHUB_ACTOR_ID) -or
151151
[String]::IsNullOrWhiteSpace($Env:GITHUB_ACTOR) -or
152152
[String]::IsNullOrWhiteSpace($Env:GITHUB_API_URL) -or
153153
[String]::IsNullOrWhiteSpace($Env:GITHUB_ENV) -or
@@ -159,8 +159,8 @@ Function Test-Environment {
159159
[String]::IsNullOrWhiteSpace($Env:GITHUB_REF_NAME) -or
160160
[String]::IsNullOrWhiteSpace($Env:GITHUB_REF_PROTECTED) -or
161161
[String]::IsNullOrWhiteSpace($Env:GITHUB_REF_TYPE) -or
162-
[String]::IsNullOrWhiteSpace($Env:GITHUB_REPOSITORY_ID) -or
163-
[String]::IsNullOrWhiteSpace($Env:GITHUB_REPOSITORY_OWNER_ID) -or
162+
# [String]::IsNullOrWhiteSpace($Env:GITHUB_REPOSITORY_ID) -or
163+
# [String]::IsNullOrWhiteSpace($Env:GITHUB_REPOSITORY_OWNER_ID) -or
164164
[String]::IsNullOrWhiteSpace($Env:GITHUB_REPOSITORY_OWNER) -or
165165
[String]::IsNullOrWhiteSpace($Env:GITHUB_REPOSITORY) -or
166166
[String]::IsNullOrWhiteSpace($Env:GITHUB_RUN_ATTEMPT) -or

0 commit comments

Comments
 (0)