diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5ceae7e501748951c6b5f9be12ff29a049a7daff..15cc4748fa4b85c9e356dabc38dd6e092a3b709b 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -114,12 +114,8 @@ create_release:
     - chmod +x /usr/local/bin/release-cli
   script:
     - echo "Creating release and attaching tutorials.zip..."
-    - |
-      # Set a dummy tag if CI_COMMIT_TAG is not defined
-      if [ -z "$CI_COMMIT_TAG" ]; then
-        export CI_COMMIT_TAG="test-dummy-tag"
-      fi
-    - echo "Using tag: $CI_COMMIT_TAG"
+    - if [ -z "$CI_COMMIT_TAG" ]; then export CI_COMMIT_TAG="test-dummy-tag"; fi
+    - echo "Using tag $CI_COMMIT_TAG"
   rules:
     - if: '$CI_COMMIT_TAG'  # Run only on tag pipelines, e.g., for release tags
       when: always