CI/codespell: revert changed-files action removal (#11022)

* CI/codespell: revert changed-files action removal

This reverts commit eca9c1e539 from #10704.

Post this change codespell doesn't show annotations for the PR contents
as it now scanning the whole pages directory and completes execution
after showing a limited number of strings. This effectively made
Codespell unusable. Therefore I have reverted the change to fix
Codespell, the only issue being this would reintroduce the false
detection with annotations being
made in translation PRs on non-English pages.

* CI/codespell: use point release instead of master

Using the development branch isn't ideal for production as it is prone to breakage with a faulty bug or PR. So in this commit, I am updating the codespell action to use the point release instead for more stability and versatility.

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
pull/23/head
K.B.Dharun Krishna 2023-10-19 21:29:55 +05:30 committed by GitHub
parent e7d2e24592
commit 1c00ae865a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 2 deletions

View File

@ -9,10 +9,19 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v39.0.0
with:
# Ignore all other languages except English
files_ignore: |
pages.*/*/*
package-lock.json
- uses: codespell-project/actions-codespell@v2
with:
ignore_words_file: .github/codespell-ignore
# Exit with 0 regardless of typos.
only_warn: 1
# Only check English files from the pages directory
path: pages/*
# Only check files in the PR
path: ${{ steps.changed-files.outputs.all_changed_files }}