go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/.github/workflows/spell-check.yaml (about) 1 --- 2 name: Spell Checking 3 4 on: 5 pull_request: 6 types: [opened, reopened, synchronize] 7 8 jobs: 9 spelling: 10 name: Run spell check 11 permissions: 12 contents: read 13 pull-requests: read 14 actions: read 15 outputs: 16 followup: ${{ steps.spelling.outputs.followup }} 17 runs-on: ubuntu-latest 18 if: "contains(github.event_name, 'pull_request') || github.event_name == 'push'" 19 concurrency: 20 group: spelling-${{ github.event.pull_request.number || github.ref }} 21 # note: If you use only_check_changed_files, you do not want cancel-in-progress 22 cancel-in-progress: true 23 steps: 24 - name: check-spelling 25 id: spelling 26 uses: check-spelling/check-spelling@v0.0.22 27 with: 28 suppress_push_for_open_pull_request: 1 29 checkout: true 30 post_comment: 0 31 dictionary_source_prefixes: '{"mondoo": "https://raw.githubusercontent.com/mondoohq/spellcheck-dictionary/main/", "cspell": "https://raw.githubusercontent.com/check-spelling/cspell-dicts/v20230509/dictionaries/"}' 32 extra_dictionaries: 33 cspell:aws/aws.txt 34 cspell:filetypes/filetypes.txt 35 cspell:software-terms/src/software-terms.txt 36 cspell:software-terms/src/software-tools.txt 37 cspell:companies/src/companies.txt 38 mondoo:mondoo_dictionary.txt 39 40 comment: 41 name: Report 42 runs-on: ubuntu-latest 43 needs: spelling 44 permissions: 45 contents: write 46 pull-requests: write 47 if: (success() || failure()) && needs.spelling.outputs.followup 48 steps: 49 - name: comment 50 uses: check-spelling/check-spelling@v0.0.22 51 with: 52 checkout: true 53 task: ${{ needs.spelling.outputs.followup }}