Skip to content

Commit 6dc9cd1

Browse files
Improve warning message for WhatIf mode in Publish-PSModule function for clarity
1 parent b6b4e9c commit 6dc9cd1

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

scripts/helpers/Publish-PSModule.ps1

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@
5454
$usePRTitleAsNotesHeading = $env:PSMODULE_PUBLISH_PSMODULE_INPUT_UsePRTitleAsNotesHeading -eq 'true'
5555

5656
if ($whatIf) {
57-
Write-Host '::warning::WhatIf mode is enabled. No actual releases will be created, no modules will be published, and no tags will be deleted.'
57+
$message = 'WhatIf mode is enabled. No actual releases will be created, ' +
58+
'no modules will be published, and no tags will be deleted.'
59+
Write-Host "::warning::$message"
5860
}
5961

6062
[pscustomobject]@{

0 commit comments

Comments
 (0)