Skip to content

Commit db1de75

Browse files
miss-islingtonzware
authored andcommitted
Fix AppVeyor doc short-circuit (pythonGH-5634)
(cherry picked from commit 6ea20fc)
1 parent 7574a1a commit db1de75

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/appveyor.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@ before_build:
1414
} elseif (!$env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT) {
1515
echo 'Not a PR, doing full build.'
1616
} else {
17-
$mergebase = git merge-base $env:APPVEYOR_PULL_REQUEST_HEAD_COMMIT $env:APPVEYOR_REPO_BRANCH
17+
git fetch -q origin +refs/heads/$env:APPVEYOR_REPO_BRANCH
18+
$mergebase = git merge-base HEAD FETCH_HEAD
1819
$changes = git diff --name-only HEAD $mergebase | grep -vE '(\.rst$)|(^Doc)|(^Misc)'
1920
If (!$changes) {
2021
echo 'Only docs were updated, stopping build process.'
2122
Exit-AppveyorBuild
2223
}
24+
echo 'Doing full build due to non-doc changes in these files:'
25+
echo $changes
2326
}
2427
2528

0 commit comments

Comments
 (0)