diff --git a/templates/pre-commit-repo.yml b/templates/pre-commit-repo.yml
index 40afdec3b238958c15dd5432d171b9e3a376a3c0..1e5bb6b1dfc66e07497f3c838024e7fd64457dc7 100644
--- a/templates/pre-commit-repo.yml
+++ b/templates/pre-commit-repo.yml
@@ -3,6 +3,9 @@ pre-commit-repo:
   stage: test
   image: registry.shore.co.il/ci-images:pre-commit
   tags: [ns4.shore.co.il]
+  rules:
+    - exists:
+        - .pre-commit-hooks.yaml
   variables:
     XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"
   script:
diff --git a/templates/pre-commit.yml b/templates/pre-commit.yml
index 5607c5c6e775b4b3bbaf6b72b2631dda66ed819f..447dce4de846d128346fa19c229555b69c83b0e3 100644
--- a/templates/pre-commit.yml
+++ b/templates/pre-commit.yml
@@ -6,6 +6,8 @@ pre-commit:
   tags: [ns4.shore.co.il]
   rules:
     - if: $CI_PIPELINE_SOURCE != "schedule"
+      exists:
+        - .pre-commit-config.yaml
   variables:
     XDG_CACHE_HOME: "$CI_PROJECT_DIR/.cache"
     SKIP: |-