Run workflow job only if pull request BASE branch is `dev`

I have a serverless application which I would like to re-deploy every time a pull request is opened to merge with dev.

If the deployment fails, the pull request cannot be merged.

Right now the branches filter only seems to look at the branch at which was pushed, but I want to prevent a push if it cannot deploy (i.e. prevent pull request deploy).

What is the point of the branch filter if at that point you cannot halt the merge anymore?

How can I run a job based on the base branch that is being merged into?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.