diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9bc75d9b2022df576b32d24344dd3938a3e54e7d..e8125f0b3e53fb43ae72e09826a9a3b4580cac96 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -152,7 +152,7 @@ test-production-webserver:
   cache: {}
   stage: test-deployment 
   rules:
-    - if: ($CI_COMMIT_TAG =~ /stable/
+    - if: $CI_COMMIT_TAG =~ /stable/
   script:
     - apt update && apt -y install curl
     - echo "This is a simple check if the deployment was successful and dags get executed"