When a PR is submitted, it’s check state on the PR depends on the last completed build. In this case, if the merge build finishes last and fails, the check state is fail.
However, if the merge build fails first and the CI build passes, the check state is pass.
Can you please upgrade the Git Clone step to the latest version (4.0.4) and change the Manual merge option (in the Clone Config category) from “yes” to “no”?
We changed how PR merge happens in the v4 version of the step, to a more direct (depends less on GitHub, does the whole PR pre-merge logic via git) approach, but it seems we forgot about self hosted GitHub, which sends the PR repo a bit differently (in your case it sends it as a https:// git clone url, not with git@ (ssh) git clone URL).
We’ll fix this ASAP (the git clone step should be able to determine that these two URLs point to the same repo), in the meantime changing the Manual Merge option from the new default (yes) to no should restore the PR pre-merge strategy of previous versions of the step.