-
Notifications
You must be signed in to change notification settings - Fork 1
api_function_writegithubactionsfail
hugoalh edited this page Nov 20, 2023
·
11 revisions
- Type: Function
- In Version: >= v0.3.0
Prints an error message to the log and end the process.
-
Write-GitHubActionsFail [-Message] <String> [-File <String>] [-Line <UInt32>] [-Column <UInt32>] [-EndLine <UInt32>] [-EndColumn <UInt32>] [-Title <String>] [-Summary <String>] [-Finally <ScriptBlock>] [-ExitCode <Byte>]
[Optional] <UInt32>
Column start of the issue file of the annotation.
- Position: Named
- Accept Pipeline Input: False β
- Accept Pipeline Input By Property Name: False β
-
Alias:
Col
ColStart
ColumnStart
StartCol
StartColumn
[Optional] <UInt32>
Column end of the issue file of the annotation.
- Position: Named
- Accept Pipeline Input: False β
- Accept Pipeline Input By Property Name: False β
-
Alias:
ColEnd
ColumnEnd
EndCol
[Optional] <UInt32>
Line end of the issue file of the annotation.
- Position: Named
- Accept Pipeline Input: False β
- Accept Pipeline Input By Property Name: False β
-
Alias:
LineEnd
[Optional] <Byte>
Exit code of the process.
-
Default Value:
1
- Position: Named
- Accept Pipeline Input: False β
- Accept Pipeline Input By Property Name: False β
[Optional] <String>
Path of the issue file of the annotation.
- Position: Named
- Accept Pipeline Input: False β
- Accept Pipeline Input By Property Name: False β
- Accept Wildcard Characters: False β
-
Alias:
Path
[Optional] <ScriptBlock>
A script block to invoke before end the process, use to free any resources that are no longer needed.
- Position: Named
- Accept Pipeline Input: False β
- Accept Pipeline Input By Property Name: False β
[Optional] <UInt32>
Line start of the issue file of the annotation.
- Position: Named
- Accept Pipeline Input: False β
- Accept Pipeline Input By Property Name: False β
-
Alias:
LineStart
StartLine
<String>
Message that need to log at error level.
- Position: 0
- Accept Pipeline Input: False β
- Accept Pipeline Input By Property Name: False β
- Accept Wildcard Characters: False β
-
Alias:
Content
(>= v2.0.0) [Optional] <String>
Summary of the message when it is too large to display.
- Position: Named
- Accept Pipeline Input: False β
- Accept Pipeline Input By Property Name: True βοΈ
- Accept Wildcard Characters: False β
[Optional] <String>
Title of the error message.
- Position: Named
- Accept Pipeline Input: False β
- Accept Pipeline Input By Property Name: False β
- Accept Wildcard Characters: False β
-
Alias:
Header
<Void>
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
π