yq/github-action/entrypoint.sh
YABATANIEN, Murichaduke 25ba763b08 supports multiline output
2021-09-12 13:09:54 +10:00

10 lines
235 B
Bash
Executable File

#!/bin/sh -l
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"