From 21f0467c0075c7e5f827788c4149d08bd34f07df Mon Sep 17 00:00:00 2001 From: Supper Thomas <78900636@qq.com> Date: Mon, 10 Feb 2025 20:08:33 +0800 Subject: [PATCH 1/2] Revert "ci: remove spell_check" This reverts commit 4edfa4895c082fcca9143526af85a05f05339f3f. --- .github/workflows/spell_check.yml | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/spell_check.yml diff --git a/.github/workflows/spell_check.yml b/.github/workflows/spell_check.yml new file mode 100644 index 00000000000..b27d82fbb29 --- /dev/null +++ b/.github/workflows/spell_check.yml @@ -0,0 +1,34 @@ +name: Check Spelling + +on: + pull_request: + branches: + - master + paths: + - 'documentation/**' +jobs: + spelling: + name: Check Spelling + runs-on: ubuntu-22.04 + if: github.repository_owner == 'RT-Thread' + steps: + - name: output ignore words info + run: | + echo "> If any words shown as incorrect are spelled correctly, please add them to .github/actions/spelling/allow.txt." >> $GITHUB_STEP_SUMMARY + - name: check spelling + id: spelling + uses: check-spelling/check-spelling@v0.0.20 + with: + checkout: true + check_file_names: 0 + only_check_changed_files: 1 + post_comment: 0 + extra_dictionaries: + cspell:en_US/src/en_US.txt + cspell:software-terms/softwareTerms.txt + cspell:python/python.txt + cspell:cpp/cpp.txt + check_extra_dictionaries: '' + - name: output Success info + run: | + echo "✅ Check spelling success." >> $GITHUB_STEP_SUMMARY From bf5b360556411e0ff8b878215ba941bd853839a6 Mon Sep 17 00:00:00 2001 From: Supper Thomas <78900636@qq.com> Date: Mon, 10 Feb 2025 20:10:29 +0800 Subject: [PATCH 2/2] Update spell_check.yml --- .github/workflows/spell_check.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/spell_check.yml b/.github/workflows/spell_check.yml index b27d82fbb29..fabc4215b86 100644 --- a/.github/workflows/spell_check.yml +++ b/.github/workflows/spell_check.yml @@ -17,7 +17,7 @@ jobs: echo "> If any words shown as incorrect are spelled correctly, please add them to .github/actions/spelling/allow.txt." >> $GITHUB_STEP_SUMMARY - name: check spelling id: spelling - uses: check-spelling/check-spelling@v0.0.20 + uses: check-spelling/check-spelling@main with: checkout: true check_file_names: 0