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 <scbedd@microsoft.com>
This commit is contained in:
Azure SDK Bot 2024-11-05 12:48:10 -08:00 committed by GitHub
parent 868a14f4d8
commit 3687136d04
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)