Skip to content

Commit 689f525

Browse files
authored
[c] Run apiscan on release branches and main (#31903)
1 parent bf850e0 commit 689f525

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

eng/pipelines/azure-pipelines-internal.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,11 @@ extends:
9797
skipProvisioning: true
9898
skipXcode: true
9999

100-
- template: /eng/pipelines/arcade/stage-api-scan.yml@self
101-
parameters:
102-
pool: ${{ parameters.VM_IMAGE_HOST }}
103-
dependsOnStage: Pack
100+
- ${{ if or(eq(variables['Build.SourceBranch'], 'refs/heads/main'), eq(variables['Build.SourceBranch'], 'refs/heads/net10.0'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/')) }}:
101+
- template: /eng/pipelines/arcade/stage-api-scan.yml@self
102+
parameters:
103+
pool: ${{ parameters.VM_IMAGE_HOST }}
104+
dependsOnStage: Pack
104105

105106
# Publish and validation steps. Only run in official builds
106107
- template: /eng/common/templates-official/post-build/post-build.yml@self

0 commit comments

Comments
 (0)