diff --git a/.github/workflows/versions.yaml b/.github/workflows/versions.yaml
index 8623c0bed01c73ee41d827f353d33537daf52402..79b25ce1fcd02190f7d5cbe6f835449b9d855adf 100644
--- a/.github/workflows/versions.yaml
+++ b/.github/workflows/versions.yaml
@@ -33,7 +33,8 @@ jobs:
         mv /tmp/versions.json jsonnet/kube-prometheus/versions.json
         # Get the links to the changelogs of the updated versions and make them
         # available to the reviewers
-        echo "new_changelogs=$(scripts/get-new-changelogs.sh)" >> $GITHUB_OUTPUT
+        new_changelogs=$(scripts/get-new-changelogs.sh)
+        echo "new_changelogs=$new_changelogs" >> $GITHUB_OUTPUT
       if: matrix.branch == 'main'
     - name: Update jsonnet dependencies
       run: |