Skip to content

Commit

Permalink
Update build.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
anwather authored Jan 7, 2025
1 parent c290dda commit 164069d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Module/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 164069d

Please sign in to comment.