Skip to content

Fix PR preview cleanup - #15

Merged
Yiminghh merged 1 commit into
mainfrom
codex/fix-preview-cleanup
Aug 3, 2026
Merged

Fix PR preview cleanup#15
Yiminghh merged 1 commit into
mainfrom
codex/fix-preview-cleanup

Conversation

@Yiminghh

@Yiminghh Yiminghh commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Cause

When a pull request closed after its head branch had been deleted, the preview workflow still tried to check out that missing branch before running cleanup.

Fix

  • check out the PR branch only for open/reopened/synchronize events
  • check out the stable base branch for closed events
  • leave the existing preview creation and cleanup action unchanged

This prevents false failure notifications while preserving preview removal.

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
PR Preview Action v1.4.7
Preview removed because the pull request was closed.
2026-08-03 18:59 UTC

@Yiminghh
Yiminghh merged commit f8315fe into main Aug 3, 2026
2 checks passed
@Yiminghh
Yiminghh deleted the codex/fix-preview-cleanup branch August 3, 2026 18:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant