Skip to content

Set-GitHubLogGroup

SYNOPSIS

Encapsulates commands with a log group in GitHub Actions

SYNTAX

Set-GitHubLogGroup [-Name] <String> [-ScriptBlock] <ScriptBlock> [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

DSL approach for GitHub Action commands. Allows for colapsing of code in IDE for code that belong together.

EXAMPLES

EXAMPLE 1

Set-GitHubLogGroup -Name 'MyGroup' -ScriptBlock {
    Write-Host 'Hello, World!'
}

Creates a new log group named 'MyGroup' and writes 'Hello, World!' to the output.

EXAMPLE 2

LogGroup 'MyGroup' {
    Write-Host 'Hello, World!'
}

Uses the alias 'LogGroup' to create a new log group named 'MyGroup' and writes 'Hello, World!' to the output.

PARAMETERS

-Name

The name of the log group

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ScriptBlock

The script block to execute

Type: ScriptBlock
Parameter Sets: (All)
Aliases:

Required: True
Position: 2
Default value: None
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.

INPUTS

OUTPUTS

NOTES

GitHub - Grouping log lines