diff --git a/shared_scripts.yml b/shared_scripts.yml
index a1d06caa787b73458d249184ebba47343b6a43b7..392a93f163cebdb2490eee44dfd6144c17ccd978 100644
--- a/shared_scripts.yml
+++ b/shared_scripts.yml
@@ -18,9 +18,9 @@ variables:
 
 .Generate_Project_:
   stage: generate
-  only: 
-    - web
-    - schedules
+  rules: 
+    - if: $CI_PIPELINE_SOURCE == "web"
+    - if: $CI_PIPELINE_SOURCE == "schedule"
   tags:
     - linux
     - docker-executor