Skip to content

Commit

Permalink
Refactor MySQL version output in build-mysql-container.yaml
Browse files Browse the repository at this point in the history
Signed-off-by: d-kuro <kurosawa7620@gmail.com>
  • Loading branch information
d-kuro committed Aug 2, 2023
1 parent 7041575 commit 41ae011
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/build-mysql-container.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 41ae011

Please sign in to comment.