From be2937e71dfe41f2bc9750a8b59969041bfcf01a Mon Sep 17 00:00:00 2001 From: Alexander Yakovlev <33040934+AlexJameson@users.noreply.github.com> Date: Thu, 22 Aug 2024 17:55:39 +0300 Subject: [PATCH] Revert "add comments correctly" This reverts commit dc4245256a0f54fb1cf5a694b441618d03ad8f81. --- .github/workflows/spellcheck-ru.yml | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/.github/workflows/spellcheck-ru.yml b/.github/workflows/spellcheck-ru.yml index 9dc53dd9652..f41cacdfb11 100644 --- a/.github/workflows/spellcheck-ru.yml +++ b/.github/workflows/spellcheck-ru.yml @@ -32,35 +32,13 @@ jobs: echo "::set-output name=all_files::$(git diff --name-only ${{ github.event.before }} ${{ github.event.after }} | tr '\n' ' ')" - name: Run CSpell on all changed files - id: cspell_check continue-on-error: true run: | - output="" for file in ${{ steps.files.outputs.all_files }}; do if [ "$file" = ".github/workflows/spellcheck-ru.yml" ] || [ "$file" = "cspell.json" ]; then echo "Skipping CSpell check for $file" continue fi echo "Checking $file for spelling errors..." - result=$(cspell "$file" --config cspell.json) - if [ -n "$result" ]; then - output+="### Errors in $file:\n\\\\n$result\n\\\\n\n" - fi - done - echo "::set-output name=results::${output}" - - - name: Post results as a PR comment - if: steps.cspell_check.outputs.results != '' - uses: actions/github-script@v5 - with: - script: | - const output = ${{ steps.cspell_check.outputs.results }}; - const prNumber = context.payload.pull_request.number; - const repoName = context.repo.repo; - const ownerName = context.repo.owner; - github.rest.issues.createComment({ - owner: ownerName, - repo: repoName, - issue_number: prNumber, - body: output - }); \ No newline at end of file + cspell $file --config cspell.json --show-suggestions + done \ No newline at end of file