Set-GitHubNoCommandGroup¶
SYNOPSIS¶
Disables workflow commands for a block of code.
SYNTAX¶
__AllParameterSets¶
Set-GitHubNoCommandGroup [-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-GitHubNoCommandGroup {
Write-Host 'Hello, World!'
Write-GithubError 'This is an error'
}
Groups commands where no workflow commands are run.
EXAMPLE 2¶
NoLogGroup 'MyGroup' {
Write-Host 'Hello, World!'
Write-GithubError 'This is an error'
}
Groups commands where no workflow commands are run, using an alias and DSL approach.
PARAMETERS¶
-ScriptBlock¶
The script block to execute
Type: System.Management.Automation.ScriptBlock
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
Position: 0
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.
INPUTS¶
OUTPUTS¶
NOTES¶
Stopping and starting workflow commands