Skip to content

api_function_writegithubactionserror

hugoalh edited this page Nov 10, 2023 · 7 revisions

Write-GitHubActionsError

  • Type: Function
  • In Version: >= v0.3.0
  • Alias:
    • Write-GHActionsError

Prints an error message to the log.

  • Write-GitHubActionsError
      [-Message] <String>
      [-File <String>]
      [-Line <UInt32>]
      [-Column <UInt32>]
      [-EndLine <UInt32>]
      [-EndColumn <UInt32>]
      [-Title <String>]
      [-Summary <String>]

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: True βœ”οΈ
  • 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: True βœ”οΈ
  • 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: True βœ”οΈ
  • 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: True βœ”οΈ
  • 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: True βœ”οΈ
  • Alias:
    • LineStart
    • StartLine

Message

<String> Message that need to log at error level.

  • Position: 0
  • Accept Pipeline Input: True βœ”οΈ
  • Accept Pipeline Input By Property Name: True βœ”οΈ
  • Accept Wildcard Characters: False ❌
  • Alias:
    • Content

Summary

(>= 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 ❌

Title

[Optional] <String> Title of the error message.

  • Position: Named
  • Accept Pipeline Input: False ❌
  • Accept Pipeline Input By Property Name: True βœ”οΈ
  • Accept Wildcard Characters: False ❌
  • Alias:
    • Header

Output

<Void>

Guide

API

Enum

Enum Flag

Function

Function Alias

Clone this wiki locally