Skip to content

Commit 6b6ab0c

Browse files
fix: unstamped fixture should have no ModuleVersion key, update validation to accept missing version
1 parent 82d6969 commit 6b6ab0c

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/Action-Test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ jobs:
172172
Write-Host "Release tag from action: [$releaseTag]"
173173
Write-Host "Publish step outcome: [$env:PUBLISH_OUTCOME]"
174174
175-
if ($version -ne '999.0.0') {
176-
Write-Error "Expected placeholder version [999.0.0] but got [$version]."
175+
if (-not [string]::IsNullOrEmpty($version) -and $version -ne '999.0.0') {
176+
Write-Error "Expected missing or placeholder version but got [$version]."
177177
exit 1
178178
}
179179
if ($env:PUBLISH_OUTCOME -eq 'success') {

tests/outputs/module-unstamped/PSModuleTest/PSModuleTest.psd1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
@{
22
RootModule = 'PSModuleTest.psm1'
3-
ModuleVersion = '999.0.0'
43
CompatiblePSEditions = @(
54
'Core'
65
'Desktop'

0 commit comments

Comments
 (0)