From 4f9016550a4550e3e6be8dcba1055da528dcd72b Mon Sep 17 00:00:00 2001 From: Alain Herve Date: Sat, 17 Feb 2024 13:47:05 +0200 Subject: [PATCH] Update build.ps1 --- build.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.ps1 b/build.ps1 index 5c1b88a..054ad76 100644 --- a/build.ps1 +++ b/build.ps1 @@ -253,7 +253,7 @@ Begin { } $Is_Lower_PsGallery_Version = [version]$current_build_version -le $Latest_Module_Verion $should_Publish_ToPsGallery = ![string]::IsNullOrWhiteSpace($env:NUGETAPIKEY) -and !$Is_Lower_PsGallery_Version - $Is_Lower_GitHub_Version = [version]$versionToDeploy -le $latest_Github_release.ver + $Is_Lower_GitHub_Version = [version]$current_build_version -le $latest_Github_release.ver $should_Publish_GitHubRelease = ![string]::IsNullOrWhiteSpace($env:GitHubPAT) -and ($env:CI -eq "true" -and $env:GITHUB_RUN_ID) -and !$Is_Lower_GitHub_Version if ($should_Publish_ToPsGallery) { $manifestPath = Join-Path $outputModVerDir "$($([Environment]::GetEnvironmentVariable($env:RUN_ID + 'ProjectName'))).psd1"