diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2ca33537aaf70ce5034fc622a34aebe4e54b0fcf..826512a5bda5977d418998b94b0d637f7408649d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,6 +11,13 @@ include:
     file: '/templates/ci-fairy.yml'
 
 
+workflow:
+  rules:
+    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
+    - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
+      when: never
+    - if: $CI_COMMIT_BRANCH
+
 variables:
   FDO_UPSTREAM_REPO: 'libevdev/python-libevdev'
   ARCH_PKGS: 'flake8'