Skip to content

Commit 9be92a0

Browse files
authored
[ci] Don't kick off CI for documentation only changes. (#712)
Use the [YAML `paths:` feature][0] of CI triggers to prevent running CI for PRs that only contain "Documentation" changes. Note: I wasn't able to verify that this works. It's possible that it needs to already be on the default branch in order to take effect. It shouldn't hurt to merge it and then test. [0]: https://docs.microsoft.com/en-us/azure/devops/pipelines/repos/github?view=azure-devops&tabs=yaml#paths
1 parent 03c2272 commit 9be92a0

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

build-tools/automation/azure-pipelines.yaml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@ trigger:
55
- d16-*
66

77
pr:
8-
- master
9-
- d16-*
8+
branches:
9+
include:
10+
- master
11+
- d16-*
12+
paths:
13+
exclude:
14+
- README.md
15+
- Documentation/*
1016

1117
# Global variables
1218
variables:

0 commit comments

Comments
 (0)