yq/github-action/entrypoint.sh
2024-03-01 15:26:18 -05:00

11 lines
262 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 "::add-mask::$RESULT"
echo ::set-output name=result::"$RESULT"