So the thing is we want to verify if the PR that is merged to a target branch does not break the build.
So we want to run a actions job to build all PR that are created against any branch on our repo
Example 1 :
master <---- BRANCH_1.
we need to merge this BRANCH_1 with master and run our build steps before we can merge the PR created against it.
BRANCH_DEV <-------- BRANCH_XX
We also need to merge this BRANCH_XX to BRANCH_DEV and run our build steps before we can merge the PR.
My current workflow file is
on: push: pull_request: - "**"
But when i do this there are multiple build jobs triggered. Can someone help me understand this case and point me the right way to do this.