Skip to content

Commit

Permalink
Change execution order of reviewdog
Browse files Browse the repository at this point in the history
  • Loading branch information
yknz committed Jul 22, 2024
1 parent 8f8474e commit c0ad0c5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,17 @@ 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 \
-filter-mode=added \
-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
Expand Down

0 comments on commit c0ad0c5

Please sign in to comment.