Add pr section to azure config (#20758)
Adds the `pr` section from https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#pr-triggers to filter paths that don't require test runs on PRs.
This commit is contained in:
parent
b944b06f30
commit
73a2bd6a4b
1 changed files with 15 additions and 4 deletions
|
@ -6,10 +6,10 @@ trigger:
|
|||
include:
|
||||
- '*'
|
||||
exclude:
|
||||
- bench/*
|
||||
- docs/*
|
||||
- errors/*
|
||||
- examples/*
|
||||
- bench
|
||||
- docs
|
||||
- errors
|
||||
- examples
|
||||
# Do not run Azure on `canary`, `master`, or release tags. This unnecessarily
|
||||
# increases the backlog, and the change was already tested on the PR.
|
||||
branches:
|
||||
|
@ -20,6 +20,17 @@ trigger:
|
|||
- master
|
||||
- refs/tags/*
|
||||
|
||||
pr:
|
||||
# Do not run Azure CI for docs-only/example-only changes:
|
||||
paths:
|
||||
include:
|
||||
- '*'
|
||||
exclude:
|
||||
- bench
|
||||
- docs
|
||||
- errors
|
||||
- examples
|
||||
|
||||
variables:
|
||||
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
|
||||
NEXT_TELEMETRY_DISABLED: '1'
|
||||
|
|
Loading…
Reference in a new issue