Skip to content

Commit 92310c1

Browse files
Copilotbackportbot[bot]
authored andcommitted
fix: use case-insensitive grep and GH Actions notice for lastupdated skip
1 parent 3d8766f commit 92310c1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/sphinxbuild.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -574,14 +574,14 @@ jobs:
574574
# Check for meaningful changes, ignoring:
575575
# - lastupdated date lines in HTML (Sphinx build-time timestamps)
576576
# - epub/pdf binaries (they regenerate automatically alongside HTML)
577-
meaningful_html=$(git diff HEAD -- '*.html' | grep -E '^[+-]' | grep -v '^[+-]{3}' | grep -v 'lastupdated\|Last updated on' | wc -l)
577+
meaningful_html=$(git diff HEAD -- '*.html' | grep -E '^[+-]' | grep -v '^[+-]{3}' | grep -ivE 'lastupdated|Last updated on' | wc -l)
578578
other_changes=$(git diff --name-only HEAD | grep -cvE '\.(html|epub|pdf)$' || true)
579579
580580
if [ "$meaningful_html" -gt 0 ] || [ "$other_changes" -gt 0 ]; then
581581
echo "has_changes=true" >> $GITHUB_OUTPUT
582582
else
583583
echo "has_changes=false" >> $GITHUB_OUTPUT
584-
echo "Skipping PR: only lastupdated timestamps or epub/pdf binaries changed"
584+
echo "::notice::Skipping deploy PR: only lastupdated timestamps or epub/pdf binaries changed"
585585
fi
586586
587587
- name: Strip noindex from stable docs

0 commit comments

Comments
 (0)