Skip to content

Commit

Permalink
Only do commands for readthedocs
Browse files Browse the repository at this point in the history
  • Loading branch information
jackh726 committed Feb 1, 2024
1 parent 0bc9f89 commit 5b1f1f0
Showing 1 changed file with 9 additions and 11 deletions.
20 changes: 9 additions & 11 deletions pybigtools/.readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5b1f1f0

Please sign in to comment.