File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 2121 fetch-dependency-versions :
2222 runs-on : ubuntu-latest
2323 outputs :
24- versions : ${{ steps.fetch-versions.outputs.versions }}
24+ versions : ${{ steps.fetch-versions.outputs.VERSIONS }}
2525
2626 steps :
27-
2827 - name : Fetch versions from Maven Central
2928 id : fetch-versions
3029 run : |
@@ -39,12 +38,12 @@ jobs:
3938 versions=$(echo "$response" | jq -r '.response.docs[].v' | grep -v -E 'SNAPSHOT|alpha|beta' | sort -V)
4039
4140 # Convert the versions to a JSON array
42- json_versions=$(echo "$versions" | jq -R . | jq -s .)
41+ json_versions=$(echo "$versions" | jq -R . | jq -s . | tr -d '\n' )
4342
4443 echo "JSON Versions: $json_versions"
4544
4645 # Output the versions as a string that can be used in the matrix
47- echo "::set-output name=versions:: ${json_versions}"
46+ echo "VERSIONS= ${json_versions}" >> $GITHUB_OUTPUT
4847
4948 test-dependency-versions :
5049 needs : fetch-dependency-versions
You can’t perform that action at this time.
0 commit comments