diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index f3c7257d0f195cca4541b865efdde47972cc7798..a226ba1ab429c10f010102c97c4934e7c516d8a2 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -69,8 +69,6 @@ documentation:static:
   rules:
     - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
   script:
-  - ls
-  - ls documentation
   - mdbook build documentation --dest-dir public
   artifacts:
     paths:
@@ -86,6 +84,8 @@ documentation:test:
   rules:
     - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
   script:
+  - ls
+  - ls documentation
   - mdbook build documentation --dest-dir public
 
 sast: