Skip to content

api_function_writegithubactionsfail

hugoalh edited this page Mar 2, 2023 · 11 revisions

Write-GitHubActionsFail

  • Type: Function
  • In Version: >= v0.3.0

Description

Write-GitHubActionsFail [-Message] <String> [-File <String>] [-Line <UInt32>] [-Column <UInt32>] [-EndLine <UInt32>] [-EndColumn <UInt32>] [-Title <String>]

Prints an error message to the log and end the process.

Parameter

Column

[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

EndColumn

[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

EndLine

[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

File

[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

Line

[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

Message

<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

Title

[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

Output

<Void>

Guide

API

Enum

Enum Flag

Function

Function Alias

Clone this wiki locally