Improve git diff command to actually exclude non-documentation files and use globbing for `.rst` files

pull/681/head
Steve Piercy 2024-07-02 18:06:57 -07:00
rodzic 470485b1a0
commit 0f7cef56c7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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