Skip to content

Commit

Permalink
feat: v1
Browse files Browse the repository at this point in the history
  • Loading branch information
jaironalves committed Jun 22, 2024
1 parent 86a0580 commit fbca82a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ _set_github_output() {
local propAndValue="$1"
prop="${propAndValue%%=*}"
value="${propAndValue#*=}"
echo "${value//#EOL#/\\n}"
if echo $value | grep -iq "#EOL#"; then
#echo "${value//#EOL#/\\n}"
echo "$(printf '%b\n' "$value")"
if echo $value | grep -iq "\\n"; then
value_multiline=$(echo "${value//#EOL#/$'\n'}")
{
echo "$prop<<EOF"
Expand All @@ -35,7 +36,7 @@ _parsed_properties=$(_replace_dots "$_properties" "_")
_escaped_multiline_properties=$(echo "${_parsed_properties//\\n/#EOL#}")


echo "$_escaped_multiline_properties" | while read -r propAndValue;
echo "$_parsed_properties" | while read -r propAndValue;
do
#echo "$propAndValue" >>"$GITHUB_OUTPUT"
_set_github_output "$propAndValue"
Expand Down

0 comments on commit fbca82a

Please sign in to comment.