From 0cfe2c4ec87faf0ca9a1b5d02a0385e8ea6f4872 Mon Sep 17 00:00:00 2001
From: Bryan Brancotte <bryan.brancotte@pasteur.fr>
Date: Wed, 19 Jun 2024 11:22:49 +0200
Subject: [PATCH] rework only to rules

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

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 4a4de03..853b382 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,8 +1,8 @@
 pages:
   stage: build
   needs: []
-  only:
-    - docs
+  rules:
+    - if: $CI_COMMIT_BRANCH == "docs"
   image: python:3.10
   script:
     - apt-get update && apt-get install -y python3-dev graphviz libgraphviz-dev 
-- 
GitLab