From 73865b9e3bdd581eaf52f368cfd917fbe16473e4 Mon Sep 17 00:00:00 2001
From: azrdev <azrdev@qrdn.de>
Date: Tue, 9 Jul 2024 13:35:31 +0000
Subject: [PATCH] fix: generated (YAML) configuration syntax error when using
 JSON input config

Due to a recent change in YQ (v4.44.2): the default output format (when not explicit) is the same as input format.
---
 templates/gitlab-ci-semrel.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/templates/gitlab-ci-semrel.yml b/templates/gitlab-ci-semrel.yml
index b4fe8fd..c8e52b8 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
-- 
GitLab