diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index b27477f86fd63257474ca201af3c522515e0e72b..134edd4f1cde24367e4d4c20f3c11d7316ab9b17 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -82,10 +82,8 @@ build-for-production:
     # If release tag does not already exist, commit and push pom with new version
     - git add pom.xml
     # Check if there are any changes staged for commit
-    - |
-      if ! git diff --cached --quiet; then
-      - git commit -m "[ci skip] Set release version ${RELEASE_VERSION}"
-      - git push origin $RELEASE_BRANCH
+    - if ! git diff --cached --quiet; then
+      git commit -m "[ci skip] Set release version ${RELEASE_VERSION}"; git push origin $RELEASE_BRANCH
       fi
     # Build new war file
     - echo "Build war file with version '$RELEASE_VERSION'"