From 3687136d04cc8e425cb368ce879a1686834b17c9 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot <53356347+azure-sdk@users.noreply.github.com> Date: Tue, 5 Nov 2024 12:48:10 -0800 Subject: [PATCH] Sync eng/common directory with azure-sdk-tools for PR 9330 (#6177) * disable InitializeCIArtifacts outside of CI until we get a better loop for usage --------- Co-authored-by: Scott Beddall --- eng/common/scripts/Package-Properties.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/eng/common/scripts/Package-Properties.ps1 b/eng/common/scripts/Package-Properties.ps1 index cf9c1b391..bd67230b7 100644 --- a/eng/common/scripts/Package-Properties.ps1 +++ b/eng/common/scripts/Package-Properties.ps1 @@ -106,6 +106,10 @@ class PackageProps { } [void]InitializeCIArtifacts() { + if (-not $env:SYSTEM_TEAMPROJECTID -and -not $env:GITHUB_ACTIONS) { + return + } + $RepoRoot = Resolve-Path (Join-Path $PSScriptRoot ".." ".." "..") $ciFolderPath = Join-Path -Path $RepoRoot -ChildPath (Join-Path "sdk" $this.ServiceDirectory)