diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d7c8f5e3bab..8570753a8c3 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -100,7 +100,7 @@ stages: skipTests: $(SkipTests) -- ${{ 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: