Skip to content

Commit

Permalink
Merge pull request #3 from carl-printreleaf/master
Browse files Browse the repository at this point in the history
Handle error code for newer version of reviewdog
  • Loading branch information
vk26 committed Apr 26, 2022
2 parents 27cdc91 + 23f7136 commit 1a00907
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,12 @@ git config --global --add safe.directory $GITHUB_WORKSPACE || exit 1

export REVIEWDOG_GITHUB_API_TOKEN="${INPUT_GITHUB_TOKEN}"

echo '::group:: Running fasterer with reviewdog 🐶 ...'

fasterer | sed "s/\x1b\[[0-9;]*m//g" \
| reviewdog -efm="%f:%l %m" -efm="%-G%.%#" -name="${INPUT_TOOL_NAME}" -reporter="${INPUT_REPORTER}" -level="${INPUT_LEVEL}"

exit_code=$?
echo '::endgroup::'

exit $exit_code

0 comments on commit 1a00907

Please sign in to comment.