Skip to content

Commit 817553a

Browse files
refactor: Update output messages for PowerShell Gallery publishing and GitHub release
1 parent 3b4309d commit 817553a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/publish.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ LogGroup 'Publish-ToPSGallery' {
8989
$publishPSVersion = "$($newVersion.Major).$($newVersion.Minor).$($newVersion.Patch)"
9090
}
9191
$psGalleryReleaseLink = "https://www.powershellgallery.com/packages/$name/$publishPSVersion"
92-
Write-Output "Publish module to PowerShell Gallery using API key from environment."
92+
Write-Output 'Publish module to PowerShell Gallery using API key from environment.'
9393
if ($whatIf) {
9494
Write-Output "Publish-PSResource -Path $modulePath -Repository PSGallery -ApiKey ***"
9595
} else {
@@ -106,7 +106,7 @@ LogGroup 'Publish-ToPSGallery' {
106106
"'Module [$name - $publishPSVersion]($psGalleryReleaseLink) published to the PowerShell Gallery.'"
107107
)
108108
} else {
109-
Write-Host "::notice::Module [$name - $publishPSVersion] published to the PowerShell Gallery."
109+
Write-Host "::notice title=New publication: PowerShell Gallery - $name $publishPSVersion::$psGalleryReleaseLink"
110110
gh pr comment $prNumber -b "Module [$name - $publishPSVersion]($psGalleryReleaseLink) published to the PowerShell Gallery."
111111
if ($LASTEXITCODE -ne 0) {
112112
Write-Error 'Failed to comment on the pull request.'
@@ -189,7 +189,7 @@ LogGroup 'New-GitHubRelease' {
189189
exit $LASTEXITCODE
190190
}
191191
}
192-
Write-Host "::notice::Release created: [$newVersion]"
192+
Write-Host "::notice title=New release: GitHub - $name $newVersion::$releaseURL"
193193
}
194194

195195
Write-Output "Publishing complete. Version: [$($newVersion.ToString())]"

0 commit comments

Comments
 (0)