Skip to content

Commit 1677b75

Browse files
style: Improve output formatting by adding separators in init and publish scripts
1 parent f727252 commit 1677b75

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

src/init.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,8 @@ if ($shouldPublish) {
345345
}
346346
Write-Host '-------------------------------------------------'
347347
Write-Host 'New version:'
348-
Write-Host ($newVersion | Format-Table | Out-String)
348+
$newVersion | Format-Table | Out-String
349+
Write-Host '-------------------------------------------------'
349350
Write-Host $newVersion.ToString()
350351
Write-Host '-------------------------------------------------'
351352
}

src/publish.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ LogGroup 'Load publish context from environment' {
5454

5555
$newVersion = New-PSSemVer -Version $newVersionString
5656

57+
Write-Host '-------------------------------------------------'
5758
[PSCustomObject]@{
5859
CreateRelease = $createRelease
5960
CreatePrerelease = $createPrerelease
@@ -62,6 +63,7 @@ LogGroup 'Load publish context from environment' {
6263
PRHeadRef = $prHeadRef
6364
WhatIf = $whatIf
6465
} | Format-List | Out-String
66+
Write-Host '-------------------------------------------------'
6567
}
6668

6769
LogGroup 'Load PR information' {

0 commit comments

Comments
 (0)