Skip to content

Commit 254eb3a

Browse files
committed
ansi-2-html
Signed-off-by: Jeremy Adams <[email protected]>
1 parent 853159d commit 254eb3a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

action.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,14 @@ runs:
9090
# Send stdout to GITHUB_OUTPUT
9191
(echo -n "stdout=" && cat "${tmpout}") >> "$GITHUB_OUTPUT"
9292
93+
# Set up ANSI to HTML converter
94+
sudo npm install -g ansi-to-html
95+
9396
# Append formatted stdout to GITHUB_STEP_SUMMARY
9497
{
9598
echo "### Dagger stdout"
9699
echo ""
97-
echo "<pre><code>"
100+
echo -n "<pre><code>"
98101
cat "${tmpout}"
99102
echo "</code></pre>"
100103
echo ""
@@ -104,8 +107,8 @@ runs:
104107
{
105108
echo "### Dagger stderr"
106109
echo ""
107-
echo "<pre><code>"
108-
cat "${tmperr}"
110+
echo -n "<pre><code>"
111+
cat ansi-2-html"${tmperr}"
109112
echo "</code></pre>"
110113
echo ""
111114
} >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)