Skip to content

Commit

Permalink
Fix: [AzurePipelines] run commit checker only for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
glx22 committed Mar 10, 2019
1 parent a1d028e commit de13c25
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions azure-pipelines/templates/linux-build.yml
Expand Up @@ -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 }}
Expand Down

0 comments on commit de13c25

Please sign in to comment.