Skip to content

Commit

Permalink
GHA: fix step summary table formatting.
Browse files Browse the repository at this point in the history
Send table prefix to summary file and add missed prefix for
clojurescript stats.
  • Loading branch information
kanaka committed Mar 19, 2024
1 parent 0601595 commit 5b1ee40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@ jobs:
make stats # Build compressed artifacts
echo "### JavaScript stats" >> $GITHUB_STEP_SUMMARY
echo -e "| Lines | Bytes | File |\n| ----- | ----- | ---- |"
echo -e "| Lines | Bytes | File |\n| ----- | ----- | ---- |" >> $GITHUB_STEP_SUMMARY
make stats^js | awk '/ *[0-9]+/ {print "| "$1" | "$2" | "$3" | "}' >> $GITHUB_STEP_SUMMARY
echo "### Python stats" >> $GITHUB_STEP_SUMMARY
echo -e "| Lines | Bytes | File |\n| ----- | ----- | ---- |"
echo -e "| Lines | Bytes | File |\n| ----- | ----- | ---- |" >> $GITHUB_STEP_SUMMARY
make stats^python | awk '/ *[0-9]+/ {print "| "$1" | "$2" | "$3" | "}' >> $GITHUB_STEP_SUMMARY
echo "### ClojureScript stats" >> $GITHUB_STEP_SUMMARY
echo -e "| Lines | Bytes | File |\n| ----- | ----- | ---- |" >> $GITHUB_STEP_SUMMARY
make stats^cljs | awk '/ *[0-9]+/ {print "| "$1" | "$2" | "$3" | "}' >> $GITHUB_STEP_SUMMARY

0 comments on commit 5b1ee40

Please sign in to comment.