diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ed2df11aa0d00de78d04a1ab4fa020f86611e445..b50a1b5e59ed40ac9dd7b8660af50a629c5dd76a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -31,6 +31,10 @@ lint templates:
     # yamllint enable rule:line-length
   variables:
     XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"
+  rules:
+    - if: $CI_PIPELINE_SOURCE == "push"
+      changes:
+        - templates/*
   cache:
     paths:
       - .cache/