From 38e51bff899e983981d22949f6a70a54c996ac32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Olender?= <92638966+TC-MO@users.noreply.github.com> Date: Tue, 3 Feb 2026 15:35:02 +0100 Subject: [PATCH] chore: check typos only on changed files in PRs Co-Authored-By: Claude Opus 4.5 --- .github/workflows/spell-check.yaml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/spell-check.yaml b/.github/workflows/spell-check.yaml index 4f56973fdc..3e1848b25f 100644 --- a/.github/workflows/spell-check.yaml +++ b/.github/workflows/spell-check.yaml @@ -11,7 +11,19 @@ jobs: name: Spell check runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v6 - - name: Check spelling with typos - uses: crate-ci/typos@v1.43.0 + - name: Checkout repository + uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v47 + with: + separator: ' ' + + - name: Check spelling with typos + if: steps.changed-files.outputs.any_changed == 'true' + uses: crate-ci/typos@v1.43.0 + with: + files: ${{ steps.changed-files.outputs.all_changed_files }}