Skip to content

fix: Clean up docs preview folders when PRs are closed - #673

Merged
BYK merged 1 commit into
masterfrom
fix/docs-preview-cleanup
Dec 27, 2025
Merged

fix: Clean up docs preview folders when PRs are closed#673
BYK merged 1 commit into
masterfrom
fix/docs-preview-cleanup

Conversation

@BYK

@BYK BYK commented Dec 26, 2025

Copy link
Copy Markdown
Member

Add the closed event type to the docs-preview workflow trigger so that pr-preview-action can automatically clean up PR preview folders from the gh-pages branch when PRs are merged or closed.

Previously, the workflow only triggered on opened, synchronize, and reopened events (the defaults), so cleanup never ran.

Add the 'closed' event type to the docs-preview workflow trigger.
The pr-preview-action with 'action: auto' will now detect closed PRs
and remove the corresponding preview folder from gh-pages.
@github-actions

github-actions Bot commented Dec 26, 2025

Copy link
Copy Markdown
Contributor

Suggested Version Bump

馃煝 Patch (bug fixes)

馃搵 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


This PR will not appear in the changelog.


馃 This preview updates automatically when you update the PR.

@github-actions

github-actions Bot commented Dec 26, 2025

Copy link
Copy Markdown
Contributor
PR Preview Action v1.7.0
Preview removed because the pull request was closed.
2025-12-27 07:39 UTC

@BYK
BYK marked this pull request as ready for review December 27, 2025 07:24
@BYK
BYK enabled auto-merge (squash) December 27, 2025 07:26
@BYK
BYK merged commit 3a63a09 into master Dec 27, 2025
16 checks passed
@BYK
BYK deleted the fix/docs-preview-cleanup branch December 27, 2025 07:38
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