# HG changeset patch # User glx # Date 2019-03-10 14:09:57 # Node ID 792baa509640e1149eb0b1f01225acca8205523d # Parent 3bb8e6d9f279d9ea459ce2d5c97517cdb1eb7d54 Fix: [AzurePipelines] run commit checker only for PRs diff --git a/azure-pipelines/templates/linux-build.yml b/azure-pipelines/templates/linux-build.yml --- a/azure-pipelines/templates/linux-build.yml +++ b/azure-pipelines/templates/linux-build.yml @@ -23,8 +23,8 @@ steps: displayName: 'Build' ${{ if eq(parameters.Image, 'compile-farm-ci') }}: displayName: 'Build and test' - ${{ if eq(parameters.Tag, 'commit-checker') }}: - condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest')) + # Run the commit-checker only if it is a Pull Request + condition: and(succeeded(), or(ne(variables['Agent.JobName'], 'commit-checker'), eq(variables['Build.Reason'], 'PullRequest'))) inputs: command: 'Run an image' imageName: openttd/${{ parameters.Image }}:${{ parameters.Tag }}