mirror of https://github.com/OpenTTD/OpenTTD.git
Fix: [AzurePipelines] run commit checker only for PRs
This commit is contained in:
parent
a1d028ea60
commit
bfbe9ccc45
|
@ -23,8 +23,8 @@ steps:
|
||||||
displayName: 'Build'
|
displayName: 'Build'
|
||||||
${{ if eq(parameters.Image, 'compile-farm-ci') }}:
|
${{ if eq(parameters.Image, 'compile-farm-ci') }}:
|
||||||
displayName: 'Build and test'
|
displayName: 'Build and test'
|
||||||
${{ if eq(parameters.Tag, 'commit-checker') }}:
|
# Run the commit-checker only if it is a Pull Request
|
||||||
condition: and(succeeded(), eq(variables['Build.Reason'], 'PullRequest'))
|
condition: and(succeeded(), or(ne(variables['Agent.JobName'], 'commit-checker'), eq(variables['Build.Reason'], 'PullRequest')))
|
||||||
inputs:
|
inputs:
|
||||||
command: 'Run an image'
|
command: 'Run an image'
|
||||||
imageName: openttd/${{ parameters.Image }}:${{ parameters.Tag }}
|
imageName: openttd/${{ parameters.Image }}:${{ parameters.Tag }}
|
||||||
|
|
Loading…
Reference in New Issue