diff --git a/github-action/entrypoint.sh b/github-action/entrypoint.sh index 17ec5411..a328fbd2 100755 --- a/github-action/entrypoint.sh +++ b/github-action/entrypoint.sh @@ -2,10 +2,11 @@ set -e echo "::debug::\$cmd: $1" RESULT=$(eval "$1") -RESULT="${RESULT//'%'/'%25'}" -RESULT="${RESULT//$'\n'/'%0A'}" -RESULT="${RESULT//$'\r'/'%0D'}" echo "::debug::\$RESULT: $RESULT" # updating from +# https://github.com/orgs/community/discussions/26288#discussioncomment-3876281 # https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#setting-an-output-parameter -echo "result=$RESULT" >> $GITHUB_OUTPUT +delimiter=$(cat /proc/sys/kernel/random/uuid) +echo "result<<${delimiter}" >> "${GITHUB_OUTPUT}" +echo "${RESULT}" >> "${GITHUB_OUTPUT}" +echo "${delimiter}" >> "${GITHUB_OUTPUT}"