| # Copyright (c) 2020-2021 Project CHIP Authors |
| # |
| # Licensed under the Apache License, Version 2.0 (the "License"); |
| # you may not use this file except in compliance with the License. |
| # You may obtain a copy of the License at |
| # |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| # |
| # Unless required by applicable law or agreed to in writing, software |
| # distributed under the License is distributed on an "AS IS" BASIS, |
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| # See the License for the specific language governing permissions and |
| # limitations under the License. |
| |
| name: Run misspell |
| |
| on: |
| push: |
| branches: |
| - master |
| - 'v*-branch' |
| paths: |
| - "**.md" |
| - ".github/.wordlist.txt" |
| pull_request: |
| paths: |
| - "**.md" |
| - ".github/.wordlist.txt" |
| |
| jobs: |
| check-spellcheck: |
| name: Check Spelling - pyspelling |
| runs-on: ubuntu-latest |
| steps: |
| - name: Checkout |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
| - uses: rojopolis/spellcheck-github-actions@e619e00ca22f01ade9d73048dcd6518bedc552f2 # 0.63.0 |
| - name: Notify Slack on Failure |
| if: failure() |
| uses: ./.github/actions/notify-slack-failure |
| with: |
| slack-webhook: ${{ secrets.SWTT_SLACK_WEBHOOK }} |