From c0ad0c57bb6393964487cb17c7a481b2c27e3c2d Mon Sep 17 00:00:00 2001 From: Yusuke Kanazawa Date: Mon, 22 Jul 2024 03:18:04 +0000 Subject: [PATCH] Change execution order of reviewdog --- .github/workflows/reviewdog.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index 20b97a030e33..cac3ec744d13 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -51,10 +51,10 @@ jobs: - name: Fetch base branch run: git fetch origin ${{github.base_ref}} --depth=1 - - name: Run textlint + - name: Run textlint with reviewdog run: | git diff -z --diff-filter=ACMR --name-only origin/${{github.base_ref}} HEAD \ - | xargs -0 ${{ steps.detect-package-manager.outputs.runner }} textlint -f checkstyle \ + | xargs -0 ${{ steps.detect-package-manager.outputs.runner }} textlint --fix -f checkstyle \ | reviewdog -f=checkstyle \ -name=textlint \ -reporter=github-pr-review \ @@ -62,10 +62,6 @@ jobs: -fail-on-error=false \ -level=warning - - name: Make code suggestions - run: | - git diff -z --diff-filter=ACMR --name-only origin/${{github.base_ref}} HEAD \ - | xargs -0 ${{ steps.detect-package-manager.outputs.runner }} textlint --fix || true TMPFILE=$(mktemp -p ${{runner.temp}}) git diff > "${TMPFILE}" git stash -u && git stash drop || true