Skip to content

Commit a0b6f5b

Browse files
authored
Run OneLocBuild on dev and release branches (#6865) (#6873)
1 parent c4fe3f5 commit a0b6f5b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

eng/pipelines/official.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ variables:
6565
RunTestsOnMac: ${{ parameters.RunTestsOnMac }}
6666
RunMonoTestsOnMac: ${{ parameters.RunMonoTestsOnMac }}
6767
RunStaticAnalysis: ${{ parameters.RunStaticAnalysis }}
68-
OneLocBranch: 'dev'
6968
SourceBranch: $[replace(variables['Build.SourceBranch'], 'refs/heads/', '')]
7069

7170
extends:
@@ -94,9 +93,7 @@ extends:
9493
- template: /eng/pipelines/templates/pipeline.yml@self
9594
parameters:
9695
isOfficialBuild: true
97-
# Only run against dev.
98-
# To request a change in localization branch, see https://github.com/dotnet/arcade/blob/main/Documentation/OneLocBuild.md#releasing-with-onelocbuild-using-arcade
99-
${{ if eq(variables['Build.SourceBranch'], format('refs/heads/{0}', variables['OneLocBranch'])) }}:
96+
${{ if or(eq(variables['Build.SourceBranch'], 'refs/heads/dev'), startsWith(variables['Build.SourceBranch'], 'refs/heads/release/')) }}:
10097
RunOneLocBuild: true
10198
RunBuildForPublishing: ${{parameters.RunBuildForPublishing}}
10299
RunCrossFrameworkTestsOnWindows: ${{parameters.RunCrossFrameworkTestsOnWindows}}

0 commit comments

Comments
 (0)