From e80cc8b01c2648c559299e01afa91c2d49b9fc82 Mon Sep 17 00:00:00 2001
From: Simon Pasquier <spasquie@redhat.com>
Date: Wed, 16 Aug 2023 17:52:43 +0200
Subject: [PATCH] chore: fix versions action (#2187)

Signed-off-by: Simon Pasquier <spasquie@redhat.com>
---
 .github/workflows/versions.yaml | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/versions.yaml b/.github/workflows/versions.yaml
index 79b25ce1..67bc918d 100644
--- a/.github/workflows/versions.yaml
+++ b/.github/workflows/versions.yaml
@@ -31,10 +31,15 @@ jobs:
         # Write to temporary file to make update atomic
         scripts/generate-versions.sh > /tmp/versions.json
         mv /tmp/versions.json jsonnet/kube-prometheus/versions.json
+        # Display the raw diff between versions.
+        git diff
         # Get the links to the changelogs of the updated versions and make them
         # available to the reviewers
-        new_changelogs=$(scripts/get-new-changelogs.sh)
-        echo "new_changelogs=$new_changelogs" >> $GITHUB_OUTPUT
+        {
+          echo 'new_changelogs<<EOF'
+          echo $(scripts/get-new-changelogs.sh)
+          echo EOF
+        } >> $GITHUB_OUTPUT
       if: matrix.branch == 'main'
     - name: Update jsonnet dependencies
       run: |
-- 
GitLab