ci: rework workflow rules to prevent duplicate pipelines
Currently gitlab spawns 2 pipelines, one for the branch and another for the merge request.
Update our rules so that only one of them is spawned depending on the situation.
Edited by Jordan Petridіs