From 9e6c55a43facb8d60c6dffd98ba1d7d2ed60ccbc Mon Sep 17 00:00:00 2001
From: Philipp Stadler <hello@phstadler.com>
Date: Sun, 21 Jul 2024 13:14:02 +0200
Subject: [PATCH] fix: really omit prepare if no resources folder

---
 .gitlab-ci.yml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b70fd45..42ddd4c 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:
-- 
GitLab