I have a Gitlab and configured CI/CD processes. One job runs building process and after build it sending to test group. The problem is that some developers simply push commits from one of their remote branches to another of their remote branches. This is faster than creating and processing a merge request every time, but it creates a conflict due to the fact that one commit starts its process twice, because it was pushed into two different branches.
I would like the job to be started for one commit once, no matter how much it is pushed. One solution is to simply write all the SHA-processed commits to a file and run a repeat check, but it seems to me there should be a cleaner way. How can I do this through .yml file?