From ce0916cd7acaf7265d8ddd4f2ae80358de3a6bcf Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 1 Apr 2024 14:18:12 +0200 Subject: [PATCH] Fix tags and version setting after tests --- .github/workflows/workflow.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 61c1149..26fdde8 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -452,33 +452,31 @@ jobs: Path = $path ModuleManifestPath = $moduleManifestPath } - Write-Host ($data | Format-Table | Out-String) + Write-Verbose ($data | Format-List | Out-String) -Verbose Set-ModuleManifest -Path $moduleManifestPath -PowerShellVersion '5.1' - #TODO: DONT OVERRIDE MANIFEST - - if ($Desktop) { + if ($desktopPassed) { Add-ModuleManifestData -Path $moduleManifestPath -CompatiblePSEditions 'Desktop' Add-ModuleManifestData -Path $moduleManifestPath -Tags 'PSEdition_Desktop' } else { Set-ModuleManifest -Path $moduleManifestPath -PowerShellVersion '7.0' } - if ($Core) { + if ($corePassed) { Add-ModuleManifestData -Path $moduleManifestPath -CompatiblePSEditions 'Core' Add-ModuleManifestData -Path $moduleManifestPath -Tags 'PSEdition_Core' } - if ($Linux) { + if ($linuxPassed) { Add-ModuleManifestData -Path $moduleManifestPath -Tags 'Linux' } - if ($MacOS) { + if ($macOSPassed) { Add-ModuleManifestData -Path $moduleManifestPath -Tags 'MacOS' } - if ($Windows) { + if ($windowsPassed) { Add-ModuleManifestData -Path $moduleManifestPath -Tags 'Windows' } Stop-LogGroup