Skip to content

Commit c7f34d1

Browse files
🪲 [Fix]: Tags and PS Version not being set in manifest after tests (#27)
## Description - Fix an issue where tags and PS Version was not being set in manifest based on module test results. ## 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 97d4e6b commit c7f34d1

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/workflow.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -452,33 +452,31 @@ jobs:
452452
Path = $path
453453
ModuleManifestPath = $moduleManifestPath
454454
}
455-
Write-Host ($data | Format-Table | Out-String)
455+
Write-Verbose ($data | Format-List | Out-String) -Verbose
456456
457457
Set-ModuleManifest -Path $moduleManifestPath -PowerShellVersion '5.1'
458458
459-
#TODO: DONT OVERRIDE MANIFEST
460-
461-
if ($Desktop) {
459+
if ($desktopPassed) {
462460
Add-ModuleManifestData -Path $moduleManifestPath -CompatiblePSEditions 'Desktop'
463461
Add-ModuleManifestData -Path $moduleManifestPath -Tags 'PSEdition_Desktop'
464462
} else {
465463
Set-ModuleManifest -Path $moduleManifestPath -PowerShellVersion '7.0'
466464
}
467465
468-
if ($Core) {
466+
if ($corePassed) {
469467
Add-ModuleManifestData -Path $moduleManifestPath -CompatiblePSEditions 'Core'
470468
Add-ModuleManifestData -Path $moduleManifestPath -Tags 'PSEdition_Core'
471469
}
472470
473-
if ($Linux) {
471+
if ($linuxPassed) {
474472
Add-ModuleManifestData -Path $moduleManifestPath -Tags 'Linux'
475473
}
476474
477-
if ($MacOS) {
475+
if ($macOSPassed) {
478476
Add-ModuleManifestData -Path $moduleManifestPath -Tags 'MacOS'
479477
}
480478
481-
if ($Windows) {
479+
if ($windowsPassed) {
482480
Add-ModuleManifestData -Path $moduleManifestPath -Tags 'Windows'
483481
}
484482
Stop-LogGroup

0 commit comments

Comments
 (0)