From 87607afe94c3b5e1ed45200de4ad6ea8158b0611 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20D=C3=BCmont?= Date: Thu, 14 Nov 2024 17:35:22 +0100 Subject: [PATCH] Fix --- .github/workflows/dependency-test.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dependency-test.yaml b/.github/workflows/dependency-test.yaml index 91a1d1595..d4ad642e6 100644 --- a/.github/workflows/dependency-test.yaml +++ b/.github/workflows/dependency-test.yaml @@ -21,10 +21,9 @@ jobs: fetch-dependency-versions: runs-on: ubuntu-latest outputs: - versions: ${{ steps.fetch-versions.outputs.versions }} + versions: ${{ steps.fetch-versions.outputs.VERSIONS }} steps: - - name: Fetch versions from Maven Central id: fetch-versions run: | @@ -39,12 +38,12 @@ jobs: versions=$(echo "$response" | jq -r '.response.docs[].v' | grep -v -E 'SNAPSHOT|alpha|beta' | sort -V) # Convert the versions to a JSON array - json_versions=$(echo "$versions" | jq -R . | jq -s .) + json_versions=$(echo "$versions" | jq -R . | jq -s . | tr -d '\n') echo "JSON Versions: $json_versions" # Output the versions as a string that can be used in the matrix - echo "::set-output name=versions::${json_versions}" + echo "VERSIONS=${json_versions}" >> $GITHUB_OUTPUT test-dependency-versions: needs: fetch-dependency-versions