Run github actions before merge #53922
-
Select Topic AreaQuestion BodyHi, I want to run an expensive job only before merge to
But it runs after merge and I want protect the |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
Hi, @jacobwojcik
try pull_request instead of push |
Beta Was this translation helpful? Give feedback.
-
github action runs when a pull request is opened on the Please have a try and check. |
Beta Was this translation helpful? Give feedback.
-
Not sure if Merge queue are flexible enough or maybe I miss something.
In case we have a different set of jobs and their names, especially in matrix, a single way to do that is to use same matrix which is unacceptable (p.3 above). @jacobwojcik, how did you solve that for your case? |
Beta Was this translation helpful? Give feedback.
-
Did you find the solution? We have the same problem, as in our development branch has release build configuration than the PR branch. I want to run a last check after two approvals in a PR to prevent running the release configuration on every PR created. |
Beta Was this translation helpful? Give feedback.
Try merge queues:
https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/configuring-pull-request-merges/managing-a-merge-queue#triggering-merge-group-checks-with-github-actions