Skip to content

Commit

Permalink
Fix tags and version setting after tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Apr 1, 2024
1 parent 97d4e6b commit ce0916c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ce0916c

Please sign in to comment.