10000 RtD docs previews: Cancel building PRs if no changes in Doc dir by hugovk · Pull Request #104100 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

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
Move "then" to same line as "if"
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
  • Loading branch information
hugovk and sobolevn authored May 12, 2023
commit b2ec93d6fa7d8ab7d38298065335c02f3e9fd5cc
3 changes: 1 addition & 2 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ 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;
then
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- Doc/ .readthedocs.yml; then
echo "No changes to Doc/ - exiting the build.";
exit 183;
fi
Expand Down
0