Unverified Commit 73a2bd6a authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

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. 
parent b944b06f
...@@ -6,10 +6,10 @@ trigger: ...@@ -6,10 +6,10 @@ trigger:
include: include:
- '*' - '*'
exclude: exclude:
- bench/* - bench
- docs/* - docs
- errors/* - errors
- examples/* - examples
# Do not run Azure on `canary`, `master`, or release tags. This unnecessarily # Do not run Azure on `canary`, `master`, or release tags. This unnecessarily
# increases the backlog, and the change was already tested on the PR. # increases the backlog, and the change was already tested on the PR.
branches: branches:
...@@ -20,6 +20,17 @@ trigger: ...@@ -20,6 +20,17 @@ trigger:
- master - master
- refs/tags/* - refs/tags/*
pr:
# Do not run Azure CI for docs-only/example-only changes:
paths:
include:
- '*'
exclude:
- bench
- docs
- errors
- examples
variables: variables:
YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn YARN_CACHE_FOLDER: $(Pipeline.Workspace)/.yarn
NEXT_TELEMETRY_DISABLED: '1' NEXT_TELEMETRY_DISABLED: '1'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment