diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index 9c963fd956fb..392e0752d011 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -66,4 +66,13 @@ jobs: run: | git diff -z --diff-filter=ACMR --name-only origin/${{github.base_ref}} HEAD \ | xargs -0 ${{ steps.detect-package-manager.outputs.runner }} textlint --fix - TMPFILE=$(mktemp) + TMPFILE=$(mktemp -p ${{runner.temp}}) + git stash -u && git stash drop || true + + reviewdog \ + -f=diff \ + -f.diff.strip=1 \ + -name=textlint-fix \ + -reporter=github-pr-review \ + -filter-mode=diff_context \ + -level=warning < "${TMPFILE}"