Fix newlines in projects GHA input

This commit is contained in:
Max Howell 2023-12-15 16:30:22 -05:00
parent e78a2c65ce
commit bb4c3edd9e
No known key found for this signature in database
GPG key ID: 741BB84EF5BB9EEC

View file

@ -26,7 +26,7 @@ jobs:
run: |
for x in ${{ steps.get-diff.outputs.diff }}; do
y=$(echo $x | sed 's#projects/\(.*\)/[^/]*#\1#')
RESULT="$RESULT $y"
RESULT="$RESULT ${y//$'\n'/}"
done
if [ -n "$RESULT" ]; then
RESULT="$(echo $RESULT | jq -R -s -c 'split(" ")')"