Skip to content

Get-GitHubOutput

SYNOPSIS

Gets the GitHub output.

SYNTAX

__AllParameterSets

Get-GitHubOutput [[-Path] <string>] [-AsHashtable] [<CommonParameters>]

ALIASES

This cmdlet has the following aliases, {{Insert list of aliases}}

DESCRIPTION

Gets the GitHub output from $env:GITHUB_OUTPUT and creates an object with key-value pairs, supporting both single-line and multi-line values

EXAMPLES

EXAMPLE 1

Get-GitHubOutput
MY_VALUE         result                       zen
--------         ------                       ---
qwe…             @{"MyOutput":"Hello, World!"} something else

Gets the GitHub output and returns an object with key-value pairs.

EXAMPLE 2

Get-GitHubOutput -AsHashtable

Name Value ---- ----- MyArray 1 2 3 MyOutput Hello, World! zen something else result {[thisisatest, a simple value]} mystuff {[MyOutput, Hello, World!]} MY_VALUE qwe…

Gets the GitHub output and returns a hashtable.

PARAMETERS

-AsHashtable

Returns the output as a hashtable.

Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Path

The path to the GitHub output file.

Type: System.String
DefaultValue: $env:GITHUB_OUTPUT
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

System.Collections.Hashtable

{{ Fill in the Description }}

NOTES