Skip to content

Commit

Permalink
Merge pull request #136 from s3-odara/lint
Browse files Browse the repository at this point in the history
lint: Apply lint only to modified files
  • Loading branch information
s3-odara authored Dec 2, 2024
2 parents aa263b8 + ddabd73 commit 8cd7fb5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ jobs:
with:
repository: ${{ github.event.pull_request.head.repo.full_name }}
ref: ${{ github.head_ref }}
- name: modified files
run: |
modified_files=$(git diff --name-only --diff-filter=AM origin/${{ github.base_ref }..origin${{ github.head_ref }} | tr '\n' ' ')
echo "textlint_flags=$modified_files" >> $GITHUB_ENV
- uses: tsuyoshicho/action-textlint@v3
with:
fail_on_error: true

0 comments on commit 8cd7fb5

Please sign in to comment.