diff --git a/scripts/ci/jobs/web.yml b/scripts/ci/jobs/web.yml
index c69c2b78c289e006aa2450ad85229d6d6217c248..afa5d414acaad9c580a5ed78aef76b69b98d3371 100644
--- a/scripts/ci/jobs/web.yml
+++ b/scripts/ci/jobs/web.yml
@@ -28,7 +28,7 @@ preview web site:
     - yarn
     - hugo --environment staging
   rules:
-    - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
+    - if: $CI_MERGE_REQUEST_ID
       changes:
       - web/**/*
       - scripts/ci/jobs/web.yml