Skip to content

Commit ca12dbb

Browse files
🪲 [Fix]: Fix notice output for prerelease (#37)
## Description - Use the correct variable for module version in notice. - Fixes #25 ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [x] 🪲 [Fix] - [ ] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent 96859e1 commit ca12dbb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/helpers/Publish-PSModule.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,8 @@ function Publish-PSModule {
318318
if ($whatIf) {
319319
Write-Output "gh pr comment $($pull_request.number) -b 'Published to the PowerShell Gallery [$newVersion]($releaseURL) has been created.'"
320320
} else {
321-
Write-Output "::notice::Module [$Name - $manifestNewVersion] published to the PowerShell Gallery."
322-
gh pr comment $pull_request.number -b "Module [$Name - $manifestNewVersion] published to the PowerShell Gallery."
321+
Write-Output "::notice::Module [$Name - $newVersion] published to the PowerShell Gallery."
322+
gh pr comment $pull_request.number -b "Module [$Name - $newVersion] published to the PowerShell Gallery."
323323
if ($LASTEXITCODE -ne 0) {
324324
Write-Error 'Failed to comment on the pull request.'
325325
exit $LASTEXITCODE

0 commit comments

Comments
 (0)