add string IsNullOrEmpty check

This commit is contained in:
Andrew Welker
2020-06-29 14:31:05 -06:00
parent 708d4c266e
commit acdff4ad67
2 changed files with 1 additions and 5 deletions

View File

@@ -17,7 +17,7 @@ Foreach ($version in $latestVersions) {
$newVersion = [version]$latestVersion
$phase = ""
$newVersionString = ""
if(!$Env:GITHUB_REF) {
if([string]::IsNullOrEmpty($Env:GITHUB_REF)) {
$phase = 'fork'
$newVersionString = "{0}.{1}.{2}-{3}-{4}" -f $newVersion.Major, $newVersion.Minor, ($newVersion.Build + 1), $phase, $Env:GITHUB_RUN_NUMBER
} else {