File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
hugoalh.GitHubActionsToolkit/module Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 457
457
* .rdx binary
458
458
* .reason binary
459
459
* .rel binary
460
- * .res text
460
+ * .res text
461
461
* .rgbe binary
462
462
* .rm binary
463
463
* .rmd text
Original file line number Diff line number Diff line change @@ -23,9 +23,6 @@ Function Add-StepSummary {
23
23
[Switch ]$NoNewLine
24
24
)
25
25
Begin {
26
- If (! (Test-GitHubActionsEnvironment - StepSummary)) {
27
- Return (Write-Error - Message ' Unable to get GitHub Actions step summary resources!' - Category ' ResourceUnavailable' )
28
- }
29
26
[String []]$Result = @ ()
30
27
}
31
28
Process {
@@ -34,6 +31,9 @@ Function Add-StepSummary {
34
31
}
35
32
}
36
33
End {
34
+ If (! (Test-GitHubActionsEnvironment - StepSummary)) {
35
+ Return (Write-Error - Message ' Unable to get GitHub Actions step summary resources!' - Category ' ResourceUnavailable' )
36
+ }
37
37
If ($Result.Count -igt 0 ) {
38
38
Add-Content - LiteralPath $Env: GITHUB_STEP_SUMMARY - Value ($Result -join " `n " ) - Confirm:$False - NoNewline:$NoNewLine - Encoding ' UTF8NoBOM'
39
39
}
@@ -259,9 +259,6 @@ Function Set-StepSummary {
259
259
[Switch ]$NoNewLine
260
260
)
261
261
Begin {
262
- If (! (Test-GitHubActionsEnvironment - StepSummary)) {
263
- Return (Write-Error - Message ' Unable to get GitHub Actions step summary resources!' - Category ' ResourceUnavailable' )
264
- }
265
262
[String []]$Result = @ ()
266
263
}
267
264
Process {
@@ -270,6 +267,9 @@ Function Set-StepSummary {
270
267
}
271
268
}
272
269
End {
270
+ If (! (Test-GitHubActionsEnvironment - StepSummary)) {
271
+ Return (Write-Error - Message ' Unable to get GitHub Actions step summary resources!' - Category ' ResourceUnavailable' )
272
+ }
273
273
If ($Result.Count -igt 0 ) {
274
274
Set-Content - LiteralPath $Env: GITHUB_STEP_SUMMARY - Value ($Result -join " `n " ) - Confirm:$False - NoNewline:$NoNewLine - Encoding ' UTF8NoBOM'
275
275
}
You can’t perform that action at this time.
0 commit comments