diff options
author | glx <glx@openttd.org> | 2019-03-10 15:09:57 +0100 |
---|---|---|
committer | glx22 <glx22@users.noreply.github.com> | 2019-03-10 15:35:22 +0100 |
commit | bfbe9ccc455c5805a5f3f973c26537771eea0e91 (patch) | |
tree | d974e9ce6e18d0893a3eb53cf1a3922189773081 /azure-pipelines | |
parent | a1d028ea607f1b2018202581ca8db093064c19e8 (diff) | |
download | openttd-bfbe9ccc455c5805a5f3f973c26537771eea0e91.tar.xz |
Fix: [AzurePipelines] run commit checker only for PRs
Diffstat (limited to 'azure-pipelines')
-rw-r--r-- | azure-pipelines/templates/linux-build.yml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/azure-pipelines/templates/linux-build.yml b/azure-pipelines/templates/linux-build.yml index 98fbfecdb..7f442904c 100644 --- 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 }} |