Skip to content

Commit

Permalink
feat: Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jaironalves committed Jul 8, 2024
1 parent 0e8aed3 commit df99c32
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ _set_github_output() {
local propertyValue="$2"

propertyValueWithoutLineEscape=$(printf "%s" "${propertyValue}" | sed 's/\\n//g')
propertyValueEscaped=$(printf "%b\n" "$propertyValue")
echo "$propertyValueEscaped"
if [ "$propertyValue" != "$propertyValueWithoutLineEscape" ]; then
echo "AQUII"
echo "AQUII"
{
echo "$propertyName<<EOF"
printf "%s\n" "$propertyValue"
printf "%b\n" "$propertyValue"
echo "EOF"
} >> "$GITHUB_OUTPUT"
else
Expand All @@ -36,9 +38,7 @@ _set_github_outputs() {
while read -r propertyLine;
do
propertyName=$(_replace_dots "${propertyLine%%=*}" "$propertyNameDotReplace")
propertyValue="${propertyLine#*=}"
#echo "$propertyLine"
#echo "$propertyValue"
propertyValue="${propertyLine#*=}"
_set_github_output "$propertyName" "$propertyValue"
done < <(echo "$properties")
}
Expand Down

0 comments on commit df99c32

Please sign in to comment.