Skip to content

Commit e917375

Browse files
azure-sdkmaririos
andauthored
Sync eng/common directory with azure-sdk-tools for PR 3433 (Azure#18402)
* add condition * divide line Co-authored-by: Mariana Rios Flores <[email protected]>
1 parent 6d1dc1f commit e917375

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

eng/common/pipelines/templates/steps/create-apireview.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,11 @@ steps:
2424
pwsh: true
2525
workingDirectory: $(Pipeline.Workspace)
2626
displayName: Create API Review for ${{ artifact.name}}
27-
condition: and(succeededOrFailed(), ne(variables['Skip.CreateApiReview'], 'true') , ne(variables['Build.Reason'],'PullRequest'), eq(variables['System.TeamProject'], 'internal'))
27+
condition: >-
28+
and(
29+
succeededOrFailed(),
30+
ne(variables['Skip.CreateApiReview'], 'true'),
31+
ne(variables['Build.Reason'],'PullRequest'),
32+
eq(variables['System.TeamProject'], 'internal'),
33+
not(endsWith(variables['Build.Repository.Name'], '-pr'))
34+
)

0 commit comments

Comments
 (0)