diff --git a/.github/workflows/versions.yaml b/.github/workflows/versions.yaml
index df90dd4d63daa8a04691abd6f7ad4931d7112346..8623c0bed01c73ee41d827f353d33537daf52402 100644
--- a/.github/workflows/versions.yaml
+++ b/.github/workflows/versions.yaml
@@ -33,7 +33,7 @@ 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 ::set-output name=new_changelogs::$(scripts/get-new-changelogs.sh)
+        echo "new_changelogs=$(scripts/get-new-changelogs.sh)" >> $GITHUB_OUTPUT
       if: matrix.branch == 'main'
     - name: Update jsonnet dependencies
       run: |