Skip to content

Commit 41bdb26

Browse files
committed
20220628B
1 parent 42cc70d commit 41bdb26

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

hugoalh.GitHubActionsToolkit/module/command-base.psm1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ Set-Alias -Name 'Format-CommandMessage' -Value 'Format-CommandValue' -Option 'Re
4444
GitHub Actions - Write Command
4545
.DESCRIPTION
4646
Write command to communicate with the runner machine.
47+
48+
This is a major function that services most of the functions; This function also will be useful when GitHub Actions has new commands but this module has not include yet.
4749
.PARAMETER Command
4850
Command.
4951
.PARAMETER Value
@@ -59,7 +61,7 @@ Function Write-Command {
5961
Param (
6062
[Parameter(Mandatory = $True, Position = 0, ValueFromPipelineByPropertyName = $True)][ValidatePattern('^(?:[\da-z][\da-z_-]*)?[\da-z]$', ErrorMessage = '`{0}` is not a valid GitHub Actions command!')][String]$Command,
6163
[Parameter(Position = 1, ValueFromPipelineByPropertyName = $True)][Alias('Content', 'Message')][String]$Value = '',
62-
[Parameter(Position = 2, ValueFromPipelineByPropertyName = $True)][Alias('Parameters', 'Property', 'Properties')][Hashtable]$Parameter = @{}
64+
[Parameter(Position = 2, ValueFromPipelineByPropertyName = $True)][Alias('Parameters', 'Properties', 'Property')][Hashtable]$Parameter = @{}
6365
)
6466
Begin {}
6567
Process {

hugoalh.GitHubActionsToolkit/module/step-summary.psm1

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ GitHub Actions - Get Step Summary
211211
.DESCRIPTION
212212
Get step summary that previously added/setted from functions `Add-GitHubActionsStepSummary` and `Set-GitHubActionsStepSummary`.
213213
.PARAMETER Raw
214-
Ignore newline characters and return the entire contents of a file in one string with the newlines preserved. By default, newline characters in a file are used as delimiters to separate the input into an array of strings.
214+
Ignore newline characters and return the entire contents of a file in one string with the newlines preserved; By default, newline characters in a file are used as delimiters to separate the input into an array of strings.
215215
.PARAMETER Sizes
216216
Get step summary sizes instead of the content.
217217
.OUTPUTS
@@ -260,7 +260,9 @@ Function Remove-StepSummary {
260260
.SYNOPSIS
261261
GitHub Actions - Set Step Summary
262262
.DESCRIPTION
263-
Set some GitHub flavored Markdown for step so that it will display on the summary page of a run; Can use to display and group unique content, such as test result summaries, so that viewing the result of a run does not need to go into the logs to see important information related to the run, such as failures. When a run's job finishes, the summaries for all steps in a job are grouped together into a single job summary and are shown on the run summary page. If multiple jobs generate summaries, the job summaries are ordered by job completion time.
263+
Set some GitHub flavored Markdown for step so that it will display on the summary page of a run; Can use to display and group unique content, such as test result summaries, so that viewing the result of a run does not need to go into the logs to see important information related to the run, such as failures.
264+
265+
When a run's job finishes, the summaries for all steps in a job are grouped together into a single job summary and are shown on the run summary page. If multiple jobs generate summaries, the job summaries are ordered by job completion time.
264266
.PARAMETER Value
265267
Content.
266268
.PARAMETER NoNewLine

hugoalh.GitHubActionsToolkit/module/utility.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ Function Test-Environment {
135135
[Switch]$Artifact,
136136
[Switch]$Cache,
137137
[Alias('Oidc')][Switch]$OpenIdConnect,
138-
[Alias('Summary')][Switch]$StepSummary,
138+
[Switch]$StepSummary,
139139
[Switch]$ToolCache,
140140
[Alias('Force', 'Forced', 'Require', 'Required')][Switch]$Mandatory,
141141
[Alias('RequiredMessage', 'RequireMessage')][String]$MandatoryMessage = 'This process require to execute inside the GitHub Actions environment!'

0 commit comments

Comments
 (0)