We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7574a1a commit db1de75Copy full SHA for db1de75
.github/appveyor.yml
@@ -14,12 +14,15 @@ before_build:
14
} elseif (!$env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT) {
15
echo 'Not a PR, doing full build.'
16
} else {
17
- $mergebase = git merge-base $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT $env:APPVEYOR_REPO_BRANCH
+ git fetch -q origin +refs/heads/$env:APPVEYOR_REPO_BRANCH
18
+ $mergebase = git merge-base HEAD FETCH_HEAD
19
$changes = git diff --name-only HEAD $mergebase | grep -vE '(\.rst$)|(^Doc)|(^Misc)'
20
If (!$changes) {
21
echo 'Only docs were updated, stopping build process.'
22
Exit-AppveyorBuild
23
}
24
+ echo 'Doing full build due to non-doc changes in these files:'
25
+ echo $changes
26
27
28
0 commit comments