Skip to content

Commit

Permalink
Simplify the sed command to enclose only code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mongolyy committed Jan 14, 2024
1 parent 9b7c905 commit f2cc911
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ echo "Biome $("$(npm root)"/.bin/biome --version)"
echo '::group:: Running Biome with reviewdog 🐶 ...'
# shellcheck disable=SC2016,SC2086
"$(npm root)"/.bin/biome ci --max-diagnostics=30 ${INPUT_BIOME_FLAGS} 2>&1 1>/dev/null |
sed -z 's/\n \( × [^\n]*\)\n \n/\1\n ```\n/g' |
sed -z 's/\n \n\n/\n ```\n/g' |
sed 's/^$/ ```/' |
sed -z 's/```\n ```//g' |
sed 's/ *$//' |
sed -z 's/\n\n\([^\n]*│[^\n]*\)/\n ```\n\1/g' |
sed -z 's/│\n\n/│\n ```\n/g' |
reviewdog \
-efm="%-G%f ci ━%#" \
-efm="%-G%f lint ━%#" \
Expand Down

0 comments on commit f2cc911

Please sign in to comment.