Skip to content

Commit 87607af

Browse files
committed
Fix
1 parent 5e273a2 commit 87607af

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/dependency-test.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ jobs:
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

0 commit comments

Comments
 (0)