diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index ec72f872b8676e433b668d79d157d72060ba9708..23c47755c00609d9d80c0f69edea19961fff0044 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -38,7 +38,7 @@
       - nixos
     stage: release
     rules:
-      - if: 'CI_COMMIT_TAG_MESSAGE =~ /DO_RELEASE/ && $CI_COMMIT_TAG' 
+      - if: '$CI_COMMIT_TAG_MESSAGE =~ /DO_RELEASE/ && $CI_COMMIT_TAG' 
         when: on_success
       - when: never
     variables:
diff --git a/devenv.nix b/devenv.nix
index a44617047bef404b2f7d854403d1661882598919..5d729bcb085772e784868e1cac49b91b1bcfcddb 100644
--- a/devenv.nix
+++ b/devenv.nix
@@ -156,7 +156,7 @@ tasks:
             - nixos
           stage: release
           rules:
-            - if: 'CI_COMMIT_TAG_MESSAGE =~ /DO_RELEASE/ && $CI_COMMIT_TAG' 
+            - if: '$CI_COMMIT_TAG_MESSAGE =~ /DO_RELEASE/ && $CI_COMMIT_TAG' 
               when: on_success
             - when: never
           variables: