Skip to content

Commit 8320664

Browse files
committed
rtd: Compare against the merge-base rather than main
1 parent 2268289 commit 8320664

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.readthedocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ build:
2020
# If there are no changes (git diff exits with 0) we force the command to return with 183.
2121
# This is a special exit code on Read the Docs that will cancel the build immediately.
2222
- |
23-
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && [ "$(git diff --quiet origin/main -- Doc/ .readthedocs.yml; echo $?)" -eq 0 ];
23+
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && [ "$(git diff --quiet $(git merge-base HEAD origin/main) -- Doc/ .readthedocs.yml; echo $?)" -eq 0 ];
2424
then
2525
echo "No changes to Doc/ - exiting the build.";
2626
exit 183;

0 commit comments

Comments
 (0)