Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/sphinxbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -571,11 +571,17 @@ jobs:
# Cleanup empty directories
find . -type d -empty -delete

# Check if there are actual changes
if git diff --quiet HEAD; then
echo "has_changes=false" >> $GITHUB_OUTPUT
else
# Check for meaningful changes, ignoring:
# - lastupdated date lines in HTML (Sphinx build-time timestamps)
# - epub/pdf binaries (they regenerate automatically alongside HTML)
meaningful_html=$(git diff HEAD -- '*.html' | grep -E '^[+-]' | grep -v '^[+-]{3}' | grep -ivE 'lastupdated|Last updated on' | wc -l)
other_changes=$(git diff --name-only HEAD | grep -cvE '\.(html|epub|pdf)$' || true)

if [ "$meaningful_html" -gt 0 ] || [ "$other_changes" -gt 0 ]; then
echo "has_changes=true" >> $GITHUB_OUTPUT
else
echo "has_changes=false" >> $GITHUB_OUTPUT
echo "::notice::Skipping deploy PR: only lastupdated timestamps or epub/pdf binaries changed"
fi

- name: Strip noindex from stable docs
Expand Down
Loading