From 2daba8e9e239569ac4f5aec0448537d3f58dff18 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 28 Mar 2024 17:34:26 +0100 Subject: [PATCH] Fix an issue where the version would be set incorrectly --- .github/workflows/workflow.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 94f79ba5..d4304dba 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -344,17 +344,18 @@ jobs: } Write-Host ($data | Format-Table | Out-String) + Set-ModuleManifest -Path $moduleManifestPath -PowerShellVersion '5.1' + if ($Desktop) { Add-ModuleManifestData -Path $moduleManifestPath -CompatiblePSEditions 'Desktop' Add-ModuleManifestData -Path $moduleManifestPath -Tags 'PSEdition_Desktop' + } else { + Set-ModuleManifest -Path $moduleManifestPath -PowerShellVersion '7.0' } if ($Core) { Add-ModuleManifestData -Path $moduleManifestPath -CompatiblePSEditions 'Core' Add-ModuleManifestData -Path $moduleManifestPath -Tags 'PSEdition_Core' - Set-ModuleManifest -Path $moduleManifestPath -PowerShellVersion '7.0' - } else { - Set-ModuleManifest -Path $moduleManifestPath -PowerShellVersion '5.1' } if ($Linux) {