Sync eng/common directory with azure-sdk-tools for PR 9181 (#6108)

* save-package-properties.yml only activates PR diff mechanism if the service directory is "auto"

---------

Co-authored-by: Scott Beddall <scbedd@microsoft.com>
This commit is contained in:
Azure SDK Bot 2024-10-17 17:03:39 -07:00 коммит произвёл GitHub
Родитель 95e59e01fa
Коммит 74fa925dea
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -16,7 +16,13 @@ parameters:
default: eng/common/scripts
steps:
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
# There will be transitory period for every language repo where the <language> - pullrequest build definition will run
# alongside the <language> - <service> - ci definitions. These pullrequest build definitions will have the ServiceDirectory parameter
# set to 'auto', which will allow the expanding and contracting based on PR Diff.
# The other public CI builds will pass a real service directory, which will not activate the PR diff logic and as such will operate
# as before this change.
- ${{ if and(eq(variables['Build.Reason'], 'PullRequest'), eq(parameters.ServiceDirectory, 'auto')) }}:
- task: Powershell@2
displayName: Generate PR Diff
inputs: