diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 57268484d01803773cb234d31a7b6b5c8538eae4..cfcf2d01b6b98a730a8b61920b118ee63c525adb 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -199,7 +199,7 @@ trigger_prepare:
     # Write to dotenv
     - echo "JULIAINT_REF=${JULIAINT_REF}" >> "$DOTENV"
     - echo "F_BRANCH=${F_BRANCH}" >> "$DOTENV"
-    - echo "CPPLIB_REF={$CPP_DEFAULT_BRANCH}"
+    - echo "CPPLIB_REF={$CPP_DEFAULT_BRANCH}" >> "$DOTENV"
     - cat "$DOTENV"
   artifacts:
     reports: