diff --git a/.azure/pipelines/localization.yml b/.azure/pipelines/localization.yml index 81fdb4d99aabf4c115de9f6dae769cef0181b626..544f8ca1bb71dd173336c2b7a8e524ba735e1d27 100644 --- a/.azure/pipelines/localization.yml +++ b/.azure/pipelines/localization.yml @@ -20,8 +20,7 @@ variables: value: AspNetCore jobs: -# When doing this for real, use eq(variables['Build.SourceBranch'], 'refs/heads/main') instead of PR check. -- ${{ if and(ne(variables['System.TeamProject'], 'public'), notin(variables['Build.Reason'], 'PullRequest')) }}: +- ${{ if and(ne(variables['System.TeamProject'], 'public'), eq(variables['Build.SourceBranch'], 'refs/heads/main')) }}: - template: /eng/common/templates/job/onelocbuild.yml parameters: LclPackageId: 'LCL-JUNO-PROD-ASPNETCORE'