Skip to content

ci(docs): remove the previews of closed PRs - #644

Merged
ocots merged 1 commit into
mainfrom
ci/docs-preview-cleanup
Oct 15, 2026
Merged

ocots merged 1 commit into
mainfrom
ci/docs-preview-cleanup

Conversation

@ocots

@ocots ocots commented Oct 15, 2026

Copy link
Copy Markdown
Member

Summary

New DocPreviewCleanup.yml. When a PR is closed, it removes from gh-pages the documentation previews (previews/PR<n>) of every PR that is no longer open, which also clears the existing backlog. It can also be run by hand (workflow_dispatch). It pushes a normal commit, never a force push. PRs from forks are skipped: they get a read-only token and never deploy a preview.

Completes the opt-in previews (documentation push preview) already in place; see SITE13 (control-toolbox/ct-conventions#36).

Needs control-toolbox/CTActions#94 merged first.

Test plan

  • After CTActions#94: run Documentation preview cleanup by hand

🤖 Generated with Claude Code

DocPreviewCleanup.yml calls CTActions documentation-preview-cleanup.yml
when a PR is closed, or by hand (control-toolbox/CTActions#94).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ocots
ocots merged commit ef60125 into main Oct 15, 2026
7 checks passed
@ocots
ocots deleted the ci/docs-preview-cleanup branch October 15, 2026 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants