mirror of https://github.com/CrimsonTome/tldr.git
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
parent
e7d2e24592
commit
1c00ae865a
|
@ -9,10 +9,19 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- 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
|
- uses: codespell-project/actions-codespell@v2
|
||||||
with:
|
with:
|
||||||
ignore_words_file: .github/codespell-ignore
|
ignore_words_file: .github/codespell-ignore
|
||||||
# Exit with 0 regardless of typos.
|
# Exit with 0 regardless of typos.
|
||||||
only_warn: 1
|
only_warn: 1
|
||||||
# Only check English files from the pages directory
|
# Only check files in the PR
|
||||||
path: pages/*
|
path: ${{ steps.changed-files.outputs.all_changed_files }}
|
||||||
|
|
Loading…
Reference in New Issue