Repository navigation
CI: clean up old Cloudflare Pages previews - #529
Merged
Merged
Conversation
- Add preview-cleanup workflow: deletes every Cloudflare Pages deployment except the newest of each open PR (on PR close, after each preview deploy, weekly, or manually with dry-run) - Publish each PR preview on its own pr-<number> branch, so deployments can be matched to PRs and the alias URL always shows the latest preview - Keep the built site for 30 days instead of 1: fork PR previews can wait longer than a day for approval, which made the deploy fail - Fail with a clear message when the built site has expired Co-Authored-By: Claude Opus 5.5 <[email protected]>
- Remove the "if" lines passed as action inputs (the action warned about them and they did nothing: the step-level "if" already filters) - Pin appleboy/telegram-action to v1.1.2 instead of master - Don't fail the run when the Telegram API resets the connection - Give the job a read-nothing token Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Preview of the website obtained from the PR: https://ac3b2448.hack-gpon-preview.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
preview-cleanupworkflow: deletes every deployment of thehack-gpon-previewCloudflare Pages project except the newest of each open PR (and the project's canonical deployment, which can't be deleted). Runs when a PR is closed, after eachpreview-deploy, weekly, and manually (with adry-runoption).pr-<number>instead of the sharedpreviewbranch, so deployments can be matched to their PR. The PR comment also shows the alias URL, which always points to the latest preview.upload-pages-artifactdefaults to 1 day, so a fork PR approved later than that failed withtar: github-pages/artifact.tar: Cannot open(e.g. run 42527530380).preview-pr.Notes
previewbranch; they come back on the next push to the PR.dry-runshows what would be deleted.🤖 Generated with Claude Code