Skip to content

Commit

Permalink
Merge pull request #162 from tsuyoshicho/fix/diff-20210718
Browse files Browse the repository at this point in the history
fix: diff cleanup
  • Loading branch information
tsuyoshicho authored Jul 18, 2021
2 parents 7582572 + d3a4e21 commit 7d9feda
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ if [[ "${INPUT_REPORTER}" == "github-pr-review" ]]; then
npx textlint --fix ${INPUT_TEXTLINT_FLAGS:-.} || true

TMPFILE=$(mktemp)
git diff >"${TMPFILE}"
git diff > "${TMPFILE}"

git stash -u

# shellcheck disable=SC2086
reviewdog \
Expand All @@ -67,8 +69,7 @@ if [[ "${INPUT_REPORTER}" == "github-pr-review" ]]; then
-level="${INPUT_LEVEL}" \
${INPUT_REVIEWDOG_FLAGS} < "${TMPFILE}"

git restore . || true
rm -f "${TMPFILE}"
git stash drop || true
echo '::endgroup::'
fi

Expand Down

0 comments on commit 7d9feda

Please sign in to comment.