Skip to content

Commit

Permalink
Don't run vmr-scan.yml for PRs in ci.yml and treat main-ub as a main …
Browse files Browse the repository at this point in the history
…branch (#18515)
  • Loading branch information
akoeplinger authored Feb 6, 2024
1 parent 198b5a8 commit fb7b9a4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/SourceBuild/content/eng/pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ variables:
value: ${{ eq(variables['System.TeamProject'], 'internal') }}

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

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

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

- template: /src/installer/eng/pipelines/templates/stages/vmr-build.yml
parameters:
Expand Down

0 comments on commit fb7b9a4

Please sign in to comment.