diff --git a/build/ci/.documentation-ci.yml b/build/ci/.documentation-ci.yml
index f6af65d2b1561ebd1325fcc91c1b0a5d14543e51..2ce234e722e683de2ec652adb6eee858e790f6cd 100644
--- a/build/ci/.documentation-ci.yml
+++ b/build/ci/.documentation-ci.yml
@@ -7,8 +7,9 @@ documentation:pdf:
     - ''
   stage: deploy
   rules:
-    - changes:
-      - documentation/design/*.md
+    - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
+      changes:
+        - documentation/design/*.md
   script:
   - cd documentation/design
   - pandoc --citeproc --bibliography=bibliography.bib --csl=acm-sig-proceedings.csl