From 5b1f1f0d9b098deffde89a50719c3c97eab4765a Mon Sep 17 00:00:00 2001 From: Jack Huey <31162821+jackh726@users.noreply.github.com> Date: Thu, 1 Feb 2024 09:23:03 -0500 Subject: [PATCH] Only do commands for readthedocs --- pybigtools/.readthedocs.yaml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/pybigtools/.readthedocs.yaml b/pybigtools/.readthedocs.yaml index a015afb..80f7e19 100644 --- a/pybigtools/.readthedocs.yaml +++ b/pybigtools/.readthedocs.yaml @@ -4,18 +4,16 @@ build: os: "ubuntu-20.04" tools: python: "3.10" - jobs: - post_checkout: - # Cancel building pull requests when they do not change pybigtools. - # - # 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/master -- pybigtools/ .readthedocs.yaml; - then - exit 183; - fi commands: + # Cancel building pull requests when they do not change pybigtools. + # + # 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/master -- pybigtools/ .readthedocs.yaml; + then + exit 183; + fi # Install dependencies - pip install pdoc3 # Build the site