Skip to content

Commit

Permalink
Better Markdown output
Browse files Browse the repository at this point in the history
  • Loading branch information
larseggert committed Mar 12, 2024
1 parent 17c4175 commit 2ff9742
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,13 +138,14 @@ jobs:
- name: Format results as Markdown
id: results
run: |
echo '### Benchmark results' > results.md
grep -Ev 'ignored|running \d+ tests|%\)' results.txt |\
sed -E -e 's/(Performance has regressed.)/:broken_heart: **\1**/gi' \
-e 's/(Performance has improved.)/:green_heart: **\1**/gi' \
-e 's/^ +/ * /gi' \
-e 's/^([a-z0-9].*)$/**\1**/gi' \
-e 's/(change:[^%]*%)([^%]*%)(.*)/\1**\2**\3/gi' \
> results.md
-e 's/^ +/ /gi' \
-e 's/^([a-z0-9].*)$/* **\1**/gi' \
-e 's/(change:[^%]*% )([^%]*%)(.*)/\1**\2**\3/gi' \
>> results.md
echo '' >> results.md
- name: Export PR comment data
Expand Down

0 comments on commit 2ff9742

Please sign in to comment.