From be806e0b250c8fd69d740da9be6f70ea110a0fc3 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Fri, 17 Jul 2020 00:13:52 +0000 Subject: [PATCH] Sync eng/common directory with azure-sdk-tools repository --- .../pipelines/templates/steps/create-pull-request.yml | 1 + eng/common/scripts/modules/Package-Properties.psm1 | 9 +++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/eng/common/pipelines/templates/steps/create-pull-request.yml b/eng/common/pipelines/templates/steps/create-pull-request.yml index ce0680ff8f997..10af61de1100a 100644 --- a/eng/common/pipelines/templates/steps/create-pull-request.yml +++ b/eng/common/pipelines/templates/steps/create-pull-request.yml @@ -68,6 +68,7 @@ steps: - task: PowerShell@2 displayName: Tag a Reviewer on PR + condition: and(succeeded(), eq(variables['HasChanges'], 'true')) inputs: pwsh: true workingDirectory: ${{ parameters.WorkingDirectory }} diff --git a/eng/common/scripts/modules/Package-Properties.psm1 b/eng/common/scripts/modules/Package-Properties.psm1 index b9a8eb11780de..b0572a71d4492 100644 --- a/eng/common/scripts/modules/Package-Properties.psm1 +++ b/eng/common/scripts/modules/Package-Properties.psm1 @@ -64,12 +64,6 @@ class PackageProps } } -$ProgressPreference = "SilentlyContinue" - - -Register-PSRepository -Default -ErrorAction:SilentlyContinue -Install-Module -Name powershell-yaml -RequiredVersion 0.4.1 -Force -Scope CurrentUser - function Extract-PkgProps ($pkgPath, $serviceName, $pkgName, $lang) { if ($lang -eq "net") @@ -261,6 +255,9 @@ function Operate-OnPackages ($activePkgList, $serviceName, $language, $repoRoot, function Get-PkgListFromYml ($ciYmlPath) { + $ProgressPreference = "SilentlyContinue" + Register-PSRepository -Default -ErrorAction:SilentlyContinue + Install-Module -Name powershell-yaml -RequiredVersion 0.4.1 -Force -Scope CurrentUser $ciYmlContent = Get-Content $ciYmlPath -Raw $ciYmlObj = ConvertFrom-Yaml $ciYmlContent -Ordered if ($ciYmlObj.Contains("stages"))