Harden Pages deploy workflow with single retry on transient deploy-pages failures#5
Merged
Merged
Conversation
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job deploy
Harden Pages deploy workflow with single retry on transient deploy-pages failures
Jul 5, 2026
Foscat
approved these changes
Jul 5, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Hardens the GitHub Pages deploy workflow against intermittent actions/deploy-pages@v5 transient failures by adding a single automatic retry, and adds a test guard to prevent the retry behavior from being accidentally removed.
Changes:
- Make the first Pages deploy step
continue-on-error: true, then add a conditional single retry step on failure. - Update the deploy job’s environment URL to use the retry step output when present, otherwise fall back to the first deploy output.
- Extend the Pages workflow contract test to assert that retry semantics exist in
.github/workflows/pages.yml.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/pages.yml |
Adds a one-time retry deploy step and adjusts environment URL to prefer retry output. |
test/pages-artifact.test.mjs |
Adds an assertion intended to lock in the retry semantics for the Pages workflow. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+76
to
+81
| assert( | ||
| pagesWorkflow.includes("continue-on-error: true") && | ||
| pagesWorkflow.includes("Retry Pages deploy once on transient failure") && | ||
| pagesWorkflow.includes("steps.deployment.outcome == 'failure'"), | ||
| "Pages workflow should retry deploy-pages once when the first deploy attempt fails" | ||
| ); |
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.
The
deployGitHub Actions job was failing after successful artifact upload becauseactions/deploy-pages@v5intermittently returnedDeployment failed, try again later.This change makes deployment resilient to that transient failure mode without changing artifact generation or publish inputs.Workflow behavior
continue-on-error: true.steps.deployment.outcome == 'failure').Environment URL output
jobs.deploy.environment.urlto resolve from retry output when present, otherwise fall back to the first deploy step output.Workflow contract coverage
test/pages-artifact.test.mjsto assert that retry semantics are present in.github/workflows/pages.yml(guards against accidental removal/regression).