Skip to content

Commit

Permalink
Improve git diff command to actually exclude non-documentation files …
Browse files Browse the repository at this point in the history
…and use globbing for `.rst` files
  • Loading branch information
stevepiercy committed Jul 3, 2024
1 parent 470485b commit 0f7cef5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,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 -- docs/ src/icalender/*.py CHANGES.rst CONTRIBUTING.rst LICENSE.rst README.rst .readthedocs.yaml requirements_docs.txt;
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- . docs/ src/icalendar/*.py *.rst .readthedocs.yaml requirements_docs.txt ':!src/icalendar/fuzzing' ':!src/icalendar/tests' ':!src/icalendar/timezone';
then
exit 183;
fi
Expand Down

0 comments on commit 0f7cef5

Please sign in to comment.