From 2881e51184f15b27b871d076be2afc7d510eb393 Mon Sep 17 00:00:00 2001 From: Vincent Demeester Date: Thu, 28 Nov 2024 17:52:46 +0100 Subject: [PATCH] .github/workflow: fix set-matrix to output a json array Signed-off-by: Vincent Demeester --- .github/workflows/index-render-template-main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/index-render-template-main.yaml b/.github/workflows/index-render-template-main.yaml index 89da2fd13..211f11c59 100644 --- a/.github/workflows/index-render-template-main.yaml +++ b/.github/workflows/index-render-template-main.yaml @@ -24,7 +24,7 @@ jobs: uses: actions/checkout@v4 - id: set-matrix run: | - echo "versions=$(cd .konflux/olm-catalog/index && ls -d v*)" >> $GITHUB_OUTPUT + echo "versions=$(cd .konflux/olm-catalog/index && ls -d v* | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT outputs: versions: ${{ steps.set-matrix.outputs.projects }} generate-catalog: