Skip to content

Commit

Permalink
fix: use input
Browse files Browse the repository at this point in the history
  • Loading branch information
tsuyoshicho committed Jul 27, 2024
1 parent bf9a9f8 commit 2b6a961
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,15 @@ echo "mypy output rdjson:"
cat "${MYPYTMPDIR}/mypy_rdjson.json"

# shellcheck disable=SC2086
cat "${MYPYTMPDIR}/mypy_rdjson.json" | \
reviewdog \
-f=rdjson \
-name="${INPUT_TOOL_NAME:-mypy}" \
-reporter="${INPUT_REPORTER:-github-pr-check}" \
-filter-mode="${INPUT_FILTER_MODE}" \
-fail-on-error="${INPUT_FAIL_ON_ERROR}" \
-level="${INPUT_LEVEL}" \
${INPUT_REVIEWDOG_FLAGS} || reviewdog_exit_val="$?"
reviewdog \
-f=rdjson \
-name="${INPUT_TOOL_NAME:-mypy}" \
-reporter="${INPUT_REPORTER:-github-pr-check}" \
-filter-mode="${INPUT_FILTER_MODE}" \
-fail-on-error="${INPUT_FAIL_ON_ERROR}" \
-level="${INPUT_LEVEL}" \
${INPUT_REVIEWDOG_FLAGS} < "${MYPYTMPDIR}/mypy_rdjson.json" \
|| reviewdog_exit_val="$?"
echo '::endgroup::'

# Throw error if an error occurred and fail_on_error is true
Expand Down

0 comments on commit 2b6a961

Please sign in to comment.