Get-GitHubOutput¶
SYNOPSIS¶
Gets the GitHub output.
SYNTAX¶
Get-GitHubOutput [-AsHashtable] [[-Path] <String>] [-ProgressAction <ActionPreference>] [<CommonParameters>]
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: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: False
Accept pipeline input: False
Accept wildcard characters: False
-Path¶
The path to the GitHub output file.
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: $env:GITHUB_OUTPUT
Accept pipeline input: False
Accept wildcard characters: False
-ProgressAction¶
{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.