Skip to content

Commit

Permalink
Merge pull request #13 from mongolyy/feature/change-sed-command
Browse files Browse the repository at this point in the history
Enclose only code blocks
  • Loading branch information
mongolyy authored Jan 14, 2024
2 parents 9b7c905 + af30a39 commit 0b1bb84
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ 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 ```\n\1/g' |
sed -z 's/│\n\n/│\n ```\n/g' |
reviewdog \
-efm="%-G%f ci ━%#" \
-efm="%-G%f lint ━%#" \
-efm="%-Gci ━%#" \
-efm="%E%f:%l:%c %.%#" \
-efm="%E%f %.%#" \
-efm="%C × %m" \
-efm="%C %m" \
-efm="%C" \
-efm="%C × %m" \
-efm="%C %m" \
-efm="%-G%.%#" \
-name="${INPUT_TOOL_NAME}" \
-reporter="${INPUT_REPORTER}" \
Expand Down

0 comments on commit 0b1bb84

Please sign in to comment.