Skip to content

Commit

Permalink
Update script
Browse files Browse the repository at this point in the history
  • Loading branch information
walbourn committed Sep 4, 2024
1 parent e863e02 commit 4359a1e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build/preparerelease.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ if ([string]::IsNullOrEmpty($rawreleasedate)) {
}
$releasedate = $rawreleasedate -replace '\*',''

if($releasedate -eq $newreleasedate) {
Write-Error ("ERROR: Release "+$releasedate+" already exists!") -ErrorAction Stop
}

if ($TargetBranch -ne 'none') {
if ([string]::IsNullOrEmpty($TargetBranch)) {
$TargetBranch = $newreleasetag + "release"
Expand Down

0 comments on commit 4359a1e

Please sign in to comment.