Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Build: Run Dependabot PRs only on Linux
  • Loading branch information
molant committed Jan 18, 2019
1 parent f34daf1 commit 4decdbc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion azure-pipelines/dependabot.yml
Expand Up @@ -5,4 +5,4 @@ jobs:
parameters:
name: Linux_Dependabot
vmImage: 'ubuntu 16.04'
condition: and(eq(variables['Build.Reason'], 'PullRequest'), startsWith(variables['Build.SourceBranch'], 'refs/heads/dependabot/'))
condition: and(eq(variables['Build.Reason'], 'PullRequest'), startsWith(variables['System.PullRequest.SourceBranch'], 'dependabot/'))
6 changes: 3 additions & 3 deletions azure-pipelines/pr.yml
Expand Up @@ -5,16 +5,16 @@ jobs:
parameters:
name: Linux_PR
vmImage: 'ubuntu 16.04'
condition: and(eq(variables['Build.Reason'], 'PullRequest'), not(startsWith(variables['Build.SourceBranch'], 'refs/heads/dependabot/')))
condition: and(eq(variables['Build.Reason'], 'PullRequest'), not(startsWith(variables['System.PullRequest.SourceBranch'], 'dependabot/')))

- template: latest-version.yml
parameters:
name: macOS_PR
vmImage: 'macOS-10.13'
condition: and(eq(variables['Build.Reason'], 'PullRequest'), not(startsWith(variables['Build.SourceBranch'], 'refs/heads/dependabot/')))
condition: and(eq(variables['Build.Reason'], 'PullRequest'), not(startsWith(variables['System.PullRequest.SourceBranch'], 'dependabot/')))

- template: latest-version.yml
parameters:
name: Windows_PR
vmImage: 'vs2017-win2016'
condition: and(eq(variables['Build.Reason'], 'PullRequest'), not(startsWith(variables['Build.SourceBranch'], 'refs/heads/dependabot/')))
condition: and(eq(variables['Build.Reason'], 'PullRequest'), not(startsWith(variables['System.PullRequest.SourceBranch'], 'dependabot/')))

0 comments on commit 4decdbc

Please sign in to comment.