Preview deployments can use the wrong PR branch alias
Author: maxffarrellCreated Jul 20, 2026Updated Jul 20, 2026
The preview deployment workflow runs through workflow_run and does not pass the source PR branch to the Cloudflare Pages action. When preview deployments overlap, the generated Pages alias can be associated with another PR branch even though the artifact SHA is correct.
The deploy workflow should pass github.event.workflow_run.head_branch to the action as its branch input.
Source: huntabyte/shadcn-svelte