Skip to content

Commit 9836467

Browse files
committedAug 24, 2023
🔧 change detection for docs build
Signed-off-by: burgholzer <burgholzer@me.com>
1 parent 45f5638 commit 9836467

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed
 

‎.readthedocs.yaml

+10
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,16 @@ build:
88
os: ubuntu-22.04
99
tools:
1010
python: "3.11"
11+
jobs:
12+
post_checkout:
13+
# Skip docs build if the commit message contains "skip ci"
14+
- (git --no-pager log --pretty="tformat:%s -- %b" -1 | grep -viq "skip ci") || exit 183
15+
# Skip docs build if there are no changes related to docs
16+
- |
17+
if [ "$READTHEDOCS_VERSION_TYPE" = "external" ] && git diff --quiet origin/main -- docs/ .readthedocs.yaml src/mqt/ src/python include/python .github/contributing* .github/workflows/support*;
18+
then
19+
exit 183;
20+
fi
1121
1222
sphinx:
1323
configuration: docs/source/conf.py

0 commit comments

Comments
 (0)
Please sign in to comment.