@@ -77,7 +77,7 @@ Function Add-StepSummary {
77
77
Add-Content - LiteralPath $Env: GITHUB_STEP_SUMMARY - Value (
78
78
$Value |
79
79
Join-String - Separator " `n "
80
- ) - Confirm:$False - NoNewline:$NoNewLine.IsPresent - Encoding ' UTF8NoBOM'
80
+ ) - Confirm:$False - NoNewline:( $NoNewLine.IsPresent ) - Encoding ' UTF8NoBOM'
81
81
}
82
82
}
83
83
}
@@ -157,15 +157,15 @@ Function Add-StepSummaryImage {
157
157
$ResultHtml += " height=`" $Height `" "
158
158
}
159
159
$ResultHtml += ' />'
160
- Add-StepSummary - Value $ResultHtml - NoNewLine:$NoNewLine.IsPresent
160
+ Add-StepSummary - Value $ResultHtml - NoNewLine:( $NoNewLine.IsPresent )
161
161
}
162
162
Else {
163
163
[String ]$ResultMarkdown = " ![$ ( [System.Web.HttpUtility ]::HtmlAttributeEncode($AlternativeText )) ]($ ( [Uri ]::EscapeUriString($Uri )) "
164
164
If ($Title.Length -gt 0 ) {
165
165
$ResultMarkdown += " `" $ ( [System.Web.HttpUtility ]::HtmlAttributeEncode($Title )) `" "
166
166
}
167
167
$ResultMarkdown += ' )'
168
- Add-StepSummary - Value $ResultMarkdown - NoNewLine:$NoNewLine.IsPresent
168
+ Add-StepSummary - Value $ResultMarkdown - NoNewLine:( $NoNewLine.IsPresent )
169
169
}
170
170
}
171
171
Set-Alias - Name ' Add-StepSummaryPicture' - Value ' Add-StepSummaryImage' - Option ' ReadOnly' - Scope ' Local'
@@ -201,7 +201,7 @@ Function Add-StepSummaryLink {
201
201
$ResultMarkdown += " `" $ ( [System.Web.HttpUtility ]::HtmlAttributeEncode($Title )) `" "
202
202
}
203
203
$ResultMarkdown += ' )'
204
- Add-StepSummary - Value $ResultMarkdown - NoNewLine:$NoNewLine.IsPresent
204
+ Add-StepSummary - Value $ResultMarkdown - NoNewLine:( $NoNewLine.IsPresent )
205
205
}
206
206
Set-Alias - Name ' Add-StepSummaryHyperlink' - Value ' Add-StepSummaryLink' - Option ' ReadOnly' - Scope ' Local'
207
207
<#
@@ -223,7 +223,7 @@ Function Add-StepSummarySubscriptText {
223
223
[Parameter (Mandatory = $True , Position = 0 )][Alias (' Input' , ' InputObject' , ' Object' )][String ]$Text ,
224
224
[Switch ]$NoNewLine
225
225
)
226
- Add-StepSummary - Value " <sub>$ ( [System.Web.HttpUtility ]::HtmlEncode($Text )) </sub>" - NoNewLine:$NoNewLine.IsPresent
226
+ Add-StepSummary - Value " <sub>$ ( [System.Web.HttpUtility ]::HtmlEncode($Text )) </sub>" - NoNewLine:( $NoNewLine.IsPresent )
227
227
}
228
228
Set-Alias - Name ' Add-StepSummarySubscript' - Value ' Add-StepSummarySubscriptText' - Option ' ReadOnly' - Scope ' Local'
229
229
<#
@@ -245,7 +245,7 @@ Function Add-StepSummarySuperscriptText {
245
245
[Parameter (Mandatory = $True , Position = 0 )][Alias (' Input' , ' InputObject' , ' Object' )][String ]$Text ,
246
246
[Switch ]$NoNewLine
247
247
)
248
- Add-StepSummary - Value " <sup>$ ( [System.Web.HttpUtility ]::HtmlEncode($Text )) </sup>" - NoNewLine:$NoNewLine.IsPresent
248
+ Add-StepSummary - Value " <sup>$ ( [System.Web.HttpUtility ]::HtmlEncode($Text )) </sup>" - NoNewLine:( $NoNewLine.IsPresent )
249
249
}
250
250
Set-Alias - Name ' Add-StepSummarySuperscript' - Value ' Add-StepSummarySuperscriptText' - Option ' ReadOnly' - Scope ' Local'
251
251
<#
@@ -276,7 +276,7 @@ Function Get-StepSummary {
276
276
}
277
277
Switch ($PSCmdlet.ParameterSetName ) {
278
278
' Content' {
279
- (Get-Content - LiteralPath $Env: GITHUB_STEP_SUMMARY - Raw:$Raw.IsPresent - Encoding ' UTF8NoBOM' - ErrorAction ' Continue' ) ?? ' ' |
279
+ (Get-Content - LiteralPath $Env: GITHUB_STEP_SUMMARY - Raw:( $Raw.IsPresent ) - Encoding ' UTF8NoBOM' - ErrorAction ' Continue' ) ?? ' ' |
280
280
Write-Output
281
281
}
282
282
' Sizes' {
@@ -347,7 +347,7 @@ Function Set-StepSummary {
347
347
Set-Content - LiteralPath $Env: GITHUB_STEP_SUMMARY - Value (
348
348
$Result |
349
349
Join-String - Separator " `n "
350
- ) - Confirm:$False - NoNewline:$NoNewLine.IsPresent - Encoding ' UTF8NoBOM'
350
+ ) - Confirm:$False - NoNewline:( $NoNewLine.IsPresent ) - Encoding ' UTF8NoBOM'
351
351
}
352
352
}
353
353
}
0 commit comments