Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only run format job in master branch #33896

Merged
merged 3 commits into from
Mar 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions eng/pipelines/runtime.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ jobs:

#
# Build CoreCLR Formatting Job
# Only when CoreCLR is changed
# Only when CoreCLR is changed, and only in the 'master' branch (no release branches;
# both CI and PR builds).
#
- template: /eng/pipelines/common/platform-matrix.yml
parameters:
Expand All @@ -212,9 +213,13 @@ jobs:
- Windows_NT_x64
jobParameters:
condition: >-
or(
eq(dependencies.checkout.outputs['SetPathVars_coreclr.containsChange'], true),
eq(variables['isFullMatrix'], true))
and(
or(
eq(variables['Build.SourceBranchName'], 'master'),
eq(variables['System.PullRequest.TargetBranch'], 'master')),
or(
eq(dependencies.checkout.outputs['SetPathVars_coreclr.containsChange'], true),
eq(variables['isFullMatrix'], true)))

#
# Build Mono debug
Expand Down