Skip to content

Commit d785cb8

Browse files
authored
Merge pull request #11 from NoResponseMate/fix/formatting
2 parents 66eef3c + b451912 commit d785cb8

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

entrypoint.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,12 @@ set -e
1010

1111
echo "$OUTPUT"
1212

13-
OUTPUT=$(echo -n "$OUTPUT" | sed 's/\x1B\[[0-9;]\{1,\}[A-Za-z]//g')
14-
OUTPUT="${OUTPUT//'%'/'%25'}"
15-
OUTPUT="${OUTPUT//$'\n'/'%0A'}"
16-
OUTPUT="${OUTPUT//$'\r'/'%0D'}"
17-
1813
echo "composer_diff_exit_code=$EXIT_CODE" >> $GITHUB_OUTPUT
19-
echo -n "composer_diff=$OUTPUT" >> $GITHUB_OUTPUT
14+
15+
delimiter="$(openssl rand -hex 8)"
16+
echo "composer_diff<<${delimiter}" >> "${GITHUB_OUTPUT}"
17+
echo "${OUTPUT}" >> "${GITHUB_OUTPUT}"
18+
echo "${delimiter}" >> "${GITHUB_OUTPUT}"
2019

2120
if [[ "$*" == *"--strict"* ]]; then
2221
exit $EXIT_CODE

0 commit comments

Comments
 (0)