From b9caa615dddc22c7dbefc17bad9e6315358840fc Mon Sep 17 00:00:00 2001 From: Scott Beddall Date: Tue, 5 Nov 2024 11:07:45 -0800 Subject: [PATCH] ensure InitializeCIArtifacts only runs on CI machines --- eng/common/scripts/Package-Properties.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/common/scripts/Package-Properties.ps1 b/eng/common/scripts/Package-Properties.ps1 index 22b109ca6e2..bd67230b7fe 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 }