1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-13 17:49:10 +00:00

Fix: [AzurePipelines] run commit checker only for PRs

This commit is contained in:
glx
2019-03-10 15:09:57 +01:00
committed by Patric Stout
parent 80dd397ce4
commit 3a97b541af

@@ -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 }}