From 164069d3a72e092843088ba0b8da07a142330e58 Mon Sep 17 00:00:00 2001 From: Anthony Watherston Date: Tue, 7 Jan 2025 16:32:29 +1100 Subject: [PATCH] Update build.ps1 --- Module/build.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/Module/build.ps1 b/Module/build.ps1 index 60189dc4..042154ca 100644 --- a/Module/build.ps1 +++ b/Module/build.ps1 @@ -56,6 +56,7 @@ if ($isPreRelease) { $prereleaseString = ($tag_name -split "-")[1] (Get-Content -Path .\Module\EnterprisePolicyAsCode\EnterprisePolicyAsCode.psd1) -replace "ModuleVersion = ''", "ModuleVersion = '$version'" | Set-Content .\Module\EnterprisePolicyAsCode\EnterprisePolicyAsCode.psd1 (Get-Content -Path .\Module\EnterprisePolicyAsCode\EnterprisePolicyAsCode.psd1) -replace "Prerelease = ''", "Prerelease = '$prereleaseString'" | Set-Content .\Module\EnterprisePolicyAsCode\EnterprisePolicyAsCode.psd1 + Get-Content -Path .\Module\EnterprisePolicyAsCode\EnterprisePolicyAsCode.psd1 } else { (Get-Content -Path .\Module\EnterprisePolicyAsCode\EnterprisePolicyAsCode.psd1) -replace "ModuleVersion = ''", "ModuleVersion = '$tag_name'" | Set-Content .\Module\EnterprisePolicyAsCode\EnterprisePolicyAsCode.psd1