From 25ba763b080ad4fb2acd07382032e811efcbcab0 Mon Sep 17 00:00:00 2001 From: "YABATANIEN, Murichaduke" Date: Sun, 12 Sep 2021 10:07:32 +0900 Subject: [PATCH] supports multiline output --- github-action/entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/github-action/entrypoint.sh b/github-action/entrypoint.sh index d070716b..8ce2a3ad 100755 --- a/github-action/entrypoint.sh +++ b/github-action/entrypoint.sh @@ -2,5 +2,8 @@ set -e echo "::debug::\$cmd: $1" RESULT=$(eval "$1") +RESULT="${RESULT//'%'/'%25'}" +RESULT="${RESULT//$'\n'/'%0A'}" +RESULT="${RESULT//$'\r'/'%0D'}" echo "::debug::\$RESULT: $RESULT" echo ::set-output name=result::"$RESULT"