diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e5419e421fc94364bdc101f307bd079d69d5b491..83cac38d2d9d462fec726f0da5392a7d79bd8e40 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -21,11 +21,11 @@ variables:
     - echo "$GLOBAL3"
     - echo "$GLOBAL4"
   rules:
-    - if: '"$GLOBAL3" == ""'
+    - if: '$GLOBAL3 == ""'
       when: always
       variables:
         GLOBAL3: "test!"
-    - if: '"$GLOBAL4" == ""'
+    - if: '$GLOBAL4 == ""'
       when: always
       variables:
         GLOBAL4: "test!"