mirror of
https://github.com/mikefarah/yq.git
synced 2024-11-12 05:38:04 +00:00
supports multiline output
This commit is contained in:
parent
6ba8dc75a6
commit
25ba763b08
@ -2,5 +2,8 @@
|
|||||||
set -e
|
set -e
|
||||||
echo "::debug::\$cmd: $1"
|
echo "::debug::\$cmd: $1"
|
||||||
RESULT=$(eval "$1")
|
RESULT=$(eval "$1")
|
||||||
|
RESULT="${RESULT//'%'/'%25'}"
|
||||||
|
RESULT="${RESULT//$'\n'/'%0A'}"
|
||||||
|
RESULT="${RESULT//$'\r'/'%0D'}"
|
||||||
echo "::debug::\$RESULT: $RESULT"
|
echo "::debug::\$RESULT: $RESULT"
|
||||||
echo ::set-output name=result::"$RESULT"
|
echo ::set-output name=result::"$RESULT"
|
||||||
|
Loading…
Reference in New Issue
Block a user