Skip to content

Conversation

@BYK
Copy link
Member

@BYK BYK commented Dec 26, 2025

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
Copy link
Contributor

github-actions bot commented Dec 26, 2025

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
Copy link
Contributor

github-actions bot commented Dec 26, 2025

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.

3 participants