-
Notifications
You must be signed in to change notification settings - Fork 1
api_function_testgithubactionsenvironment
hugoalh edited this page Nov 20, 2023
·
11 revisions
- Type: Function
- In Version: >= v0.3.0
Test the current process whether is executing inside the GitHub Actions environment.
-
# >= v2.0.0; Parameter Set: Mandatory Test-GitHubActionsEnvironment [-Artifact] [-Cache] [-OpenIdConnect] [-ToolCache] -Mandatory [-MandatoryMessage <String>]
-
# >= v2.0.0; Parameter Set: Optional (Default) Test-GitHubActionsEnvironment [-Artifact] [-Cache] [-OpenIdConnect] [-ToolCache]
-
# < v2.0.0 Test-GitHubActionsEnvironment [-Artifact] [-Cache] [-OpenIdConnect] [-ToolCache] [-Mandatory] [-MandatoryMessage <String>]
[Optional] <Switch> Also test whether have artifact resources.
-
Parameter Set: (>= v2.0.0)
- Optional
- Mandatory
- Position: Named
- Accept Pipeline Input By Property Name: False β
[Optional] <Switch> Also test whether have cache resources.
-
Parameter Set: (>= v2.0.0)
- Optional
- Mandatory
- Position: Named
- Accept Pipeline Input By Property Name: False β
-
(>= v2.0.0)
<Switch>Whether the requirement is mandatory; If mandatory but not fulfill, will throw an error (PowerShell error). -
(< v2.0.0) [Optional]
<Switch>Whether the requirement is mandatory; If mandatory but not fulfill, will throw an error (PowerShell error).
β’
- Parameter Set: (>= v2.0.0) Mandatory
- Position: Named
- Accept Pipeline Input By Property Name: False β
-
Alias:
RequireRequired
[Optional] <String> Message when the requirement is mandatory but not fulfill.
- Parameter Set: (>= v2.0.0) Mandatory
-
Default Value:
'This process requires to invoke inside the GitHub Actions environment!' - Position: Named
- Accept Pipeline Input: False β
- Accept Pipeline Input By Property Name: False β
- Accept Wildcard Characters: False β
-
Alias:
RequiredMessageRequireMessage
[Optional] <Switch> Also test whether have OpenID Connect (OIDC) resources.
-
Parameter Set: (>= v2.0.0)
- Optional
- Mandatory
- Position: Named
- Accept Pipeline Input By Property Name: False β
-
Alias:
Oidc
[Optional] <Switch> Also test whether have tool cache resources.
-
Parameter Set: (>= v2.0.0)
- Optional
- Mandatory
- Position: Named
- Accept Pipeline Input By Property Name: False β
-
Mandatory:
<Void> -
Optional:
<Boolean>Test result.
Add-GitHubActionsPATHAdd-GitHubActionsProblemMatcherAdd-GitHubActionsSecretMaskAdd-GitHubActionsSummaryAdd-GitHubActionsSummaryHeaderAdd-GitHubActionsSummaryImageAdd-GitHubActionsSummaryLinkAdd-GitHubActionsSummarySubscriptTextAdd-GitHubActionsSummarySuperscriptTextClear-GitHubActionsEnvironmentVariableClear-GitHubActionsFileCommandClear-GitHubActionsOutputClear-GitHubActionsPATHClear-GitHubActionsStateClear-GitHubActionsSummaryConvertFrom-GitHubActionsCsvMConvertFrom-GitHubActionsCsvSDisable-GitHubActionsStdOutCommandEchoDisable-GitHubActionsStdOutCommandProcessEnable-GitHubActionsStdOutCommandEchoEnable-GitHubActionsStdOutCommandProcessEnter-GitHubActionsLogGroupExit-GitHubActionsLogGroupExpand-GitHubActionsToolCacheCompressedFileExport-GitHubActionsArtifactFind-GitHubActionsToolCacheFormat-GitHubActionsMarkdownGet-GitHubActionsArtifactGet-GitHubActionsDebugStatusGet-GitHubActionsInputGet-GitHubActionsOpenIdConnectTokenGet-GitHubActionsStateGet-GitHubActionsSummaryGet-GitHubActionsWebhookEventPayloadGet-GitHubActionsWorkflowRunUriImport-GitHubActionsArtifactInvoke-GitHubActionsToolCacheToolDownloaderRegister-GitHubActionsToolCacheDirectoryRegister-GitHubActionsToolCacheFileRemove-GitHubActionsProblemMatcherRestore-GitHubActionsCacheSave-GitHubActionsCacheSet-GitHubActionsEnvironmentVariableSet-GitHubActionsOutputSet-GitHubActionsStateSet-GitHubActionsSummaryTest-GitHubActionsEnvironmentWrite-GitHubActionsDebugWrite-GitHubActionsErrorWrite-GitHubActionsFailWrite-GitHubActionsFileCommandWrite-GitHubActionsNoticeWrite-GitHubActionsStdOutCommandWrite-GitHubActionsWarningAdd-GitHubActionsStepSummaryπAdd-GitHubActionsStepSummaryHeaderπAdd-GitHubActionsStepSummaryImageπAdd-GitHubActionsStepSummaryLinkπAdd-GitHubActionsStepSummarySubscriptTextπAdd-GitHubActionsStepSummarySuperscriptTextπClear-GitHubActionsStepSummaryπGet-GitHubActionsStepSummaryπSet-GitHubActionsStepSummaryπTest-GitHubActionsNodeJsEnvironmentπWrite-GitHubActionsAnnotationπWrite-GitHubActionsRawπ
Add-GitHubActionsMaskAdd-GitHubActionsSecretAdd-GitHubActionsSummaryHyperlinkAdd-GitHubActionsSummaryPictureAdd-GitHubActionsSummaryRawAdd-GitHubActionsSummarySubscriptAdd-GitHubActionsSummarySuperscriptClear-GitHubActionsEnvDisable-GitHubActionsCommandEchoDisable-GitHubActionsCommandProcessEnable-GitHubActionsCommandEchoEnable-GitHubActionsCommandProcessEnter-GitHubActionsGroupExit-GitHubActionsGroupExpand-GitHubActionsToolCacheArchiveExport-GitHubActionsCacheGet-GitHubActionsEventGet-GitHubActionsEventPayloadGet-GitHubActionsIsDebugGet-GitHubActionsOidcTokenGet-GitHubActionsPayloadGet-GitHubActionsWebhookEventGet-GitHubActionsWebhookPayloadGet-GitHubActionsWorkflowRunUrlImport-GitHubActionsCacheRemove-GitHubActionsEnvRemove-GitHubActionsEnvironmentVariableRemove-GitHubActionsFileCommandRemove-GitHubActionsOutputRemove-GitHubActionsPATHRemove-GitHubActionsStateRemove-GitHubActionsSummaryRestore-GitHubActionsArtifactRestore-GitHubActionsStateResume-GitHubActionsCommandProcessResume-GitHubActionsStdOutCommandProcessSave-GitHubActionsArtifactSave-GitHubActionsStateSet-GitHubActionsEnvStart-GitHubActionsCommandEchoStart-GitHubActionsCommandProcessStart-GitHubActionsStdOutCommandEchoStart-GitHubActionsStdOutCommandProcessStop-GitHubActionsCommandEchoStop-GitHubActionsCommandProcessStop-GitHubActionsStdOutCommandEchoStop-GitHubActionsStdOutCommandProcessSuspend-GitHubActionsCommandProcessSuspend-GitHubActionsStdOutCommandProcessWrite-GitHubActionsCommandWrite-GitHubActionsNoteWrite-GitHubActionsWarnAdd-GitHubActionsStepSummaryHyperlinkπAdd-GitHubActionsStepSummaryPictureπAdd-GitHubActionsStepSummaryRawπAdd-GitHubActionsStepSummarySubscriptπAdd-GitHubActionsStepSummarySuperscriptπRemove-GitHubActionsStepSummaryπSet-GitHubActionsEnvironmentπ