Skip to content

Commit

Permalink
Sync eng/common directory with azure-sdk-tools for PR 9181 (Azure#31455)
Browse files Browse the repository at this point in the history
* save-package-properties.yml only activates PR diff mechanism if the service directory is "auto"

---------

Co-authored-by: Scott Beddall <[email protected]>
  • Loading branch information
azure-sdk and scbedd authored Oct 18, 2024
1 parent b18c38d commit d2356b1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d2356b1

Please sign in to comment.