Skip to content

CI: dry run mode for CF preview cleanup#413

Merged
mohanadft merged 1 commit intomainfrom
dry-run-cf-preview-cleanup
Apr 8, 2026
Merged

CI: dry run mode for CF preview cleanup#413
mohanadft merged 1 commit intomainfrom
dry-run-cf-preview-cleanup

Conversation

@mohanadft
Copy link
Copy Markdown
Collaborator

Summary

  • Switches the cleanup workflow to dry run mode — lists deployments that would be deleted but does not call DELETE
  • Adds API error logging so we can see the raw response if something is misconfigured
  • Once we confirm the API connection and branch matching work correctly, we'll swap in the real DELETE call

How to verify

Merge a PR and check the workflow run logs — you should see [DRY RUN] Would delete: <url> lines for each preview deployment on that branch.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying website with  Cloudflare Pages  Cloudflare Pages

Latest commit: a367605
Status: ✅  Deploy successful!
Preview URL: https://756ba968.website-aun.pages.dev
Branch Preview URL: https://dry-run-cf-preview-cleanup.website-aun.pages.dev

View logs

@mohanadft mohanadft closed this Apr 8, 2026
@mohanadft mohanadft reopened this Apr 8, 2026
@mohanadft mohanadft merged commit 42834d3 into main Apr 8, 2026
7 checks passed
@mohanadft mohanadft deleted the dry-run-cf-preview-cleanup branch April 8, 2026 13:25
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