Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

RtD docs previews: Cancel building PRs if no changes in Doc dir #104100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
May 24, 2023
Merged
Prev Previous commit
Next Next commit
Use | for multiline string
Co-authored-by: Manuel Kaufmann <humitos@gmail.com>
  • Loading branch information
hugovk and humitos authored May 23, 2023
commit 689dfe6ad466f737ff0a148acf606235b9decaad
10 changes: 6 additions & 4 deletions 10 .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ build:
#
# If there are no changes (git diff exits with 0) we force the command to return with 183.
# This is a special exit code on Read the Docs that will cancel the build immediately.
- if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && [ "$(git diff --quiet origin/main -- Doc/ .readthedocs.yml; echo $?)" -eq 0 ]; then \
echo "No changes to Doc/ - exiting the build."; \
exit 183; \
fi
- |
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && [ "$(git diff --quiet origin/main -- Doc/ .readthedocs.yml; echo $?)" -eq 0 ];
then
echo "No changes to Doc/ - exiting the build.";
exit 183;
fi

- make -C Doc venv html
- mkdir _readthedocs
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.