diff --git a/templates/gitlab-ci-semrel.yml b/templates/gitlab-ci-semrel.yml
index b4fe8fdfd124e30a37d3191fa3c2027c415e1a24..c8e52b84fbd4f6e690227a25a0fc2034af87cf14 100644
--- a/templates/gitlab-ci-semrel.yml
+++ b/templates/gitlab-ci-semrel.yml
@@ -686,7 +686,7 @@ stages:
     releaserc_file="${semrelConfigFile}"
     rm -f "package.json"
 
-    yq eval -P 'with_entries(select((.key | . != "plugins") and (.key | . != "verifyConditions")))' "${releaserc_file}" > "${releaserc_file}.new"
+    yq eval -oyaml -P 'with_entries(select((.key | . != "plugins") and (.key | . != "verifyConditions")))' "${releaserc_file}" > "${releaserc_file}.new"
 
     # Generating the hook scripts that will generate the dotenv file
     # The dotenv file is generated in $TMPDIR so it will survive the git reset