mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
Fix newlines in projects GHA input
This commit is contained in:
parent
e78a2c65ce
commit
bb4c3edd9e
1 changed files with 1 additions and 1 deletions
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
|
@ -26,7 +26,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
for x in ${{ steps.get-diff.outputs.diff }}; do
|
for x in ${{ steps.get-diff.outputs.diff }}; do
|
||||||
y=$(echo $x | sed 's#projects/\(.*\)/[^/]*#\1#')
|
y=$(echo $x | sed 's#projects/\(.*\)/[^/]*#\1#')
|
||||||
RESULT="$RESULT $y"
|
RESULT="$RESULT ${y//$'\n'/}"
|
||||||
done
|
done
|
||||||
if [ -n "$RESULT" ]; then
|
if [ -n "$RESULT" ]; then
|
||||||
RESULT="$(echo $RESULT | jq -R -s -c 'split(" ")')"
|
RESULT="$(echo $RESULT | jq -R -s -c 'split(" ")')"
|
||||||
|
|
Loading…
Reference in a new issue