From c108f5ec3015d45b6de3280dd01a0aa49db82217 Mon Sep 17 00:00:00 2001
From: Kwangjin Lee <k.lee-5@student.tudelft.nl>
Date: Tue, 15 Oct 2024 15:15:43 +0200
Subject: [PATCH] modify sync to help verify if the .py can be checked

---
 .gitlab-ci.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 36aba5fa..67ef159a 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -58,7 +58,14 @@ sync_notebooks:
   stage: sync
   extends: .install_dependencies
   script:
+    - echo "Executing sync script at ${SYNC_SCRIPT_PATH}"
+    - ls -l ${SYNC_SCRIPT_PATH}  # This will help verify the file exists and has correct permissions
     - python ${SYNC_SCRIPT_PATH} ./src ./clean
+    - |
+      if [ -n "$(find . -name '*.conflicts')" ]; then
+        echo "Conflicts detected. Please review the .conflicts files."
+        exit 1
+      fi
   artifacts:
     paths:
       - src/
-- 
GitLab