Skip to content

Add PR preview pruning and retention management#378

Open
Yashisinghal285 wants to merge 1 commit into
layer5io:masterfrom
Yashisinghal285:issue-377-preview-pruning
Open

Add PR preview pruning and retention management#378
Yashisinghal285 wants to merge 1 commit into
layer5io:masterfrom
Yashisinghal285:issue-377-preview-pruning

Conversation

@Yashisinghal285

Copy link
Copy Markdown
Contributor

Description

This PR adds preview pruning and retention management for PR preview deployments.

What changed

  • Adds PREVIEW_RETENTION_LIMIT = 6
  • Implements pruning of old pr-preview/pr-* directories
  • Uses sparse checkout for efficient gh-pages maintenance
  • Ensures only 6 most recent previews are kept
  • Adds notifications when previews are pruned
  • Preserves cleanup-on-close behavior

Issue

Fixes #377

Notes for Reviewers

  • Workflow runs after PR preview deployment
  • Only gh-pages pr-preview directory is modified
  • Safe for concurrent PR workflows

Checklist

  • I tested the workflow locally / validated syntax
  • I understand this modifies GitHub Actions behavior

Signed commits

  • Yes, I signed my commits

@github-actions

Copy link
Copy Markdown

🚀 Preview deployment: https://layer5io.github.io/getnighthawk/pr-preview/pr-378/

Note: Preview may take a moment (GitHub Pages deployment in progress). Please wait and refresh. Track deployment here

@Yashisinghal285

Copy link
Copy Markdown
Contributor Author

Hi maintainers 👋
This PR implements preview pruning and retention management as per #377.
Ready for review when convenient.

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.

Add pruning for PR preview deployments

1 participant