Skip to content

Commit

Permalink
ansi-2-html
Browse files Browse the repository at this point in the history
Signed-off-by: Jeremy Adams <[email protected]>
  • Loading branch information
jpadams committed Oct 31, 2024
1 parent 853159d commit b8e91e0
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,14 @@ runs:
# Send stdout to GITHUB_OUTPUT
(echo -n "stdout=" && cat "${tmpout}") >> "$GITHUB_OUTPUT"
# Set up ANSI to HTML converter
sudo npm install -g ansi-to-html
# Append formatted stdout to GITHUB_STEP_SUMMARY
{
echo "### Dagger stdout"
echo ""
echo "<pre><code>"
echo -n "<pre><code>"
cat "${tmpout}"
echo "</code></pre>"
echo ""
Expand All @@ -104,8 +107,8 @@ runs:
{
echo "### Dagger stderr"
echo ""
echo "<pre><code>"
cat "${tmperr}"
echo -n "<pre><code>"
ansi-to-html < "${tmperr}"
echo "</code></pre>"
echo ""
} >> $GITHUB_STEP_SUMMARY
Expand Down

0 comments on commit b8e91e0

Please sign in to comment.