diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b70fd45ff78f7f1cd723fa4f2d438fde085a85f8..42ddd4cf34332609eab75981131b9cd2d63c8ca4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -11,9 +11,11 @@ prepare:
     - if: $CI_PIPELINE_SOURCE == "schedule"
       when: never
     - if: $CI_PIPELINE_SOURCE == "merge_request_event"
+      exists:
+        - resources
     - if: $CI_COMMIT_TAG
-    - exists:
-      - resources
+      exists:
+        - resources
   script:
     - to-static-jsonp --fn hd resources/* -o .
   artifacts: