Skip to content

Commit fb7b9a4

Browse files
authored
Don't run vmr-scan.yml for PRs in ci.yml and treat main-ub as a main branch (#18515)
1 parent 198b5a8 commit fb7b9a4

File tree

1 file changed

+3
-2
lines changed
  • src/SourceBuild/content/eng/pipelines

1 file changed

+3
-2
lines changed

src/SourceBuild/content/eng/pipelines/ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ variables:
3030
value: ${{ eq(variables['System.TeamProject'], 'internal') }}
3131

3232
- name: isMainBranch
33-
value: ${{ eq(variables['Build.SourceBranch'], 'refs/heads/main') }}
33+
value: ${{ in(variables['Build.SourceBranch'], 'refs/heads/main', 'refs/heads/main-ub') }}
3434

3535
- name: isScheduleTrigger
3636
value: ${{ eq(variables['Build.Reason'], 'Schedule') }}
@@ -39,7 +39,8 @@ variables:
3939
value: ${{ eq(variables['Build.Reason'], 'PullRequest') }}
4040

4141
stages:
42-
- template: templates/stages/vmr-scan.yml
42+
- ${{ if not(eq(variables.isPRTrigger, 'true')) }}:
43+
- template: templates/stages/vmr-scan.yml
4344

4445
- template: /src/installer/eng/pipelines/templates/stages/vmr-build.yml
4546
parameters:

0 commit comments

Comments
 (0)