Skip to content

ci: fix docs preview-cleanup (HTTP 400) and move CI off Node 20#19

Merged
dcmcand merged 1 commit into
mainfrom
ci/fix-preview-cleanup
Jul 2, 2026
Merged

ci: fix docs preview-cleanup (HTTP 400) and move CI off Node 20#19
dcmcand merged 1 commit into
mainfrom
ci/fix-preview-cleanup

Conversation

@dcmcand

@dcmcand dcmcand commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

What

Two CI fixes:

1. Fix the failing "Docs preview cleanup" workflow

The cleanup job listed Cloudflare Pages deployments with per_page=100, which the deployments endpoint rejects with HTTP 400 (curl -fsS -> exit 22). This is why the workflow failed on PR #16's own close event (the "Delete this branch's preview deployments" step).

Fix: page through deployments with the endpoint's default page size (?env=preview&page=N, looping until an empty page), collecting this branch's deployment ids. env was fine; only the oversized per_page was the problem. Verified the parameter contract against Cloudflare's list-deployments API docs.

2. Move CI off the deprecated Node 20 runtime

Bumped actions/checkout@v4 -> v5 and azure/setup-helm@v4 -> v5 across build-image, lint, release, test, and test-integration. azure/setup-helm@v5's headline change is the node20 -> node24 runtime move with no input changes, and all usages are bare (no pinned inputs), so this is a safe bump.

docs.yml is intentionally left untouched: the Astro/Starlight migration PR (#18) replaces that workflow wholesale and already uses checkout@v5, so editing it here would collide.

Testing

  • All workflows parse (yaml.safe_load) and are actionlint-clean (shellcheck validated the cleanup script).
  • The cleanup fix's live path needs the Cloudflare secrets + a real PR-close event, so it is exercised the next time a docs PR closes. The query contract and shell are validated as above.

…ode 20

The Docs preview cleanup workflow listed deployments with per_page=100, which
the Cloudflare Pages deployments endpoint rejects with HTTP 400, so the cleanup
step failed on PR close. Page through deployments with the default page size
instead (env=preview&page=N until an empty page), collecting this branch's ids.

Also bump actions/checkout v4->v5 and azure/setup-helm v4->v5 across the CI
workflows to move off the deprecated Node 20 runtime. docs.yml is intentionally
left untouched: the Astro/Starlight migration PR replaces it and already pins
checkout v5.
@dcmcand dcmcand merged commit 50eaac2 into main Jul 2, 2026
4 checks passed
@dcmcand dcmcand deleted the ci/fix-preview-cleanup branch July 2, 2026 12:46
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