Skip to content

Commit 9e5f5f4

Browse files
committed
Skip RTD workflow on non-documentation changes
1 parent 9c8fbf1 commit 9e5f5f4

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

.readthedocs.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@ build:
44
os: ubuntu-24.04
55
tools:
66
python: "3.12"
7+
jobs:
8+
post_checkout:
9+
- |
10+
if [ "$READTHEDOCS_VERSION_TYPE" != "external" ]; then
11+
CHANGED_FILES=$(git diff --name-only HEAD^ HEAD || echo "")
12+
if [ -n "$CHANGED_FILES" ] && ! echo "$CHANGED_FILES" | grep -qE '\.(po|yaml|yml)$'; then
13+
exit 183
14+
fi
15+
fi
716
817
commands:
918
- git clone --depth 1 --branch v3.14.6 https://github.com/python/cpython venv/cpython

0 commit comments

Comments
 (0)