diff --git a/.github/workflows/build-mysql-container.yaml b/.github/workflows/build-mysql-container.yaml index c9868c66a..00061acc0 100644 --- a/.github/workflows/build-mysql-container.yaml +++ b/.github/workflows/build-mysql-container.yaml @@ -36,12 +36,7 @@ jobs: done - if [ "${#array[@]}" -eq 0 ]; then - json_output="[]" - else - json_output=$(printf '%s\n' "${array[@]}" | jq -R . | jq -s . | jq -c .) - fi - + json_output=$(echo "${array[@]}" | jq -Rc 'split(" ")') echo "GITHUB_OUTPUT: mysql-versions=$json_output" echo "mysql-versions=$json_output" >> "$GITHUB_OUTPUT"