diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 9c51c6a8aef..37b5fc0aeb8 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -97,7 +97,7 @@ stages: targetArchitecture: arm64 -- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: +- ${{ if and( and( ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')), eq(variables['Build.SourceBranch'], 'refs/heads/main')) }}: - stage: OneLocBuild displayName: Publish localizable content to OneLocBuild jobs: