Commit 3d8766f
fix: skip deploy PR when only lastupdated timestamps or epub/pdf changed
When Sphinx rebuilds documentation without any content changes, it still
updates the `<span class="lastupdated">` date in every HTML file and
regenerates epub/pdf binaries. This caused a noisy automated PR (e.g.
#15046) with no meaningful content change.
The `has_changes` check in the deploy job now ignores:
- HTML lines matching `lastupdated` or `Last updated on`
- epub and pdf binary files (which regenerate alongside HTML)
If all changes fall into those categories, no PR is created.1 parent de84bc3 commit 3d8766f
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
571 | 571 | | |
572 | 572 | | |
573 | 573 | | |
574 | | - | |
575 | | - | |
576 | | - | |
577 | | - | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
578 | 581 | | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
579 | 585 | | |
580 | 586 | | |
581 | 587 | | |
| |||
0 commit comments