diff --git a/eng/common/scripts/Package-Properties.ps1 b/eng/common/scripts/Package-Properties.ps1 index 22b109ca6e..bd67230b7f 100644 --- a/eng/common/scripts/Package-Properties.ps1 +++ b/eng/common/scripts/Package-Properties.ps1 @@ -106,7 +106,7 @@ class PackageProps { } [void]InitializeCIArtifacts() { - if ($env:SYSTEM_TEAMPROJECTID -or $env:GITHUB_ACTIONS) { + if (-not $env:SYSTEM_TEAMPROJECTID -and -not $env:GITHUB_ACTIONS) { return }