Commit 73865b9e authored by azrdev's avatar azrdev Committed by Pierre Smeyers
Browse files

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.
parent 433a86f5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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