Set-GitHubLogGroup¶
SYNOPSIS¶
Encapsulates commands with a log group in GitHub Actions
SYNTAX¶
__AllParameterSets¶
Set-GitHubLogGroup [-Name] <string> [-ScriptBlock] <scriptblock> [<CommonParameters>]
ALIASES¶
This cmdlet has the following aliases, {{Insert list of aliases}}
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: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-ScriptBlock¶
The script block to execute
Type: System.Management.Automation.ScriptBlock
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 1
IsRequired: true
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.