-
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:
Require
Required
[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:
RequiredMessage
RequireMessage
[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-GitHubActionsPATH
Add-GitHubActionsProblemMatcher
Add-GitHubActionsSecretMask
Add-GitHubActionsSummary
Add-GitHubActionsSummaryHeader
Add-GitHubActionsSummaryImage
Add-GitHubActionsSummaryLink
Add-GitHubActionsSummarySubscriptText
Add-GitHubActionsSummarySuperscriptText
Clear-GitHubActionsEnvironmentVariable
Clear-GitHubActionsFileCommand
Clear-GitHubActionsOutput
Clear-GitHubActionsPATH
Clear-GitHubActionsState
Clear-GitHubActionsSummary
ConvertFrom-GitHubActionsCsvM
ConvertFrom-GitHubActionsCsvS
Disable-GitHubActionsStdOutCommandEcho
Disable-GitHubActionsStdOutCommandProcess
Enable-GitHubActionsStdOutCommandEcho
Enable-GitHubActionsStdOutCommandProcess
Enter-GitHubActionsLogGroup
Exit-GitHubActionsLogGroup
Expand-GitHubActionsToolCacheCompressedFile
Export-GitHubActionsArtifact
Find-GitHubActionsToolCache
Format-GitHubActionsMarkdown
Get-GitHubActionsArtifact
Get-GitHubActionsDebugStatus
Get-GitHubActionsInput
Get-GitHubActionsOpenIdConnectToken
Get-GitHubActionsState
Get-GitHubActionsSummary
Get-GitHubActionsWebhookEventPayload
Get-GitHubActionsWorkflowRunUri
Import-GitHubActionsArtifact
Invoke-GitHubActionsToolCacheToolDownloader
Register-GitHubActionsToolCacheDirectory
Register-GitHubActionsToolCacheFile
Remove-GitHubActionsProblemMatcher
Restore-GitHubActionsCache
Save-GitHubActionsCache
Set-GitHubActionsEnvironmentVariable
Set-GitHubActionsOutput
Set-GitHubActionsState
Set-GitHubActionsSummary
Test-GitHubActionsEnvironment
Write-GitHubActionsDebug
Write-GitHubActionsError
Write-GitHubActionsFail
Write-GitHubActionsFileCommand
Write-GitHubActionsNotice
Write-GitHubActionsStdOutCommand
Write-GitHubActionsWarning
Add-GitHubActionsStepSummary
πAdd-GitHubActionsStepSummaryHeader
πAdd-GitHubActionsStepSummaryImage
πAdd-GitHubActionsStepSummaryLink
πAdd-GitHubActionsStepSummarySubscriptText
πAdd-GitHubActionsStepSummarySuperscriptText
πClear-GitHubActionsStepSummary
πGet-GitHubActionsStepSummary
πSet-GitHubActionsStepSummary
πTest-GitHubActionsNodeJsEnvironment
πWrite-GitHubActionsAnnotation
πWrite-GitHubActionsRaw
π
Add-GitHubActionsMask
Add-GitHubActionsSecret
Add-GitHubActionsSummaryHyperlink
Add-GitHubActionsSummaryPicture
Add-GitHubActionsSummaryRaw
Add-GitHubActionsSummarySubscript
Add-GitHubActionsSummarySuperscript
Clear-GitHubActionsEnv
Disable-GitHubActionsCommandEcho
Disable-GitHubActionsCommandProcess
Enable-GitHubActionsCommandEcho
Enable-GitHubActionsCommandProcess
Enter-GitHubActionsGroup
Exit-GitHubActionsGroup
Expand-GitHubActionsToolCacheArchive
Export-GitHubActionsCache
Get-GitHubActionsEvent
Get-GitHubActionsEventPayload
Get-GitHubActionsIsDebug
Get-GitHubActionsOidcToken
Get-GitHubActionsPayload
Get-GitHubActionsWebhookEvent
Get-GitHubActionsWebhookPayload
Get-GitHubActionsWorkflowRunUrl
Import-GitHubActionsCache
Remove-GitHubActionsEnv
Remove-GitHubActionsEnvironmentVariable
Remove-GitHubActionsFileCommand
Remove-GitHubActionsOutput
Remove-GitHubActionsPATH
Remove-GitHubActionsState
Remove-GitHubActionsSummary
Restore-GitHubActionsArtifact
Restore-GitHubActionsState
Resume-GitHubActionsCommandProcess
Resume-GitHubActionsStdOutCommandProcess
Save-GitHubActionsArtifact
Save-GitHubActionsState
Set-GitHubActionsEnv
Start-GitHubActionsCommandEcho
Start-GitHubActionsCommandProcess
Start-GitHubActionsStdOutCommandEcho
Start-GitHubActionsStdOutCommandProcess
Stop-GitHubActionsCommandEcho
Stop-GitHubActionsCommandProcess
Stop-GitHubActionsStdOutCommandEcho
Stop-GitHubActionsStdOutCommandProcess
Suspend-GitHubActionsCommandProcess
Suspend-GitHubActionsStdOutCommandProcess
Write-GitHubActionsCommand
Write-GitHubActionsNote
Write-GitHubActionsWarn
Add-GitHubActionsStepSummaryHyperlink
πAdd-GitHubActionsStepSummaryPicture
πAdd-GitHubActionsStepSummaryRaw
πAdd-GitHubActionsStepSummarySubscript
πAdd-GitHubActionsStepSummarySuperscript
πRemove-GitHubActionsStepSummary
πSet-GitHubActionsEnvironment
π