diff options
author | Marc Cornellà <hello@mcornella.com> | 2021-12-01 12:18:32 +0100 |
---|---|---|
committer | Marc Cornellà <hello@mcornella.com> | 2021-12-01 12:20:46 +0100 |
commit | aef393bdce523ed5e5754721965fab2da8080119 (patch) | |
tree | 5f7657dcd9048454bc91ced07128c0b47eb60955 /.github/workflows/spelling.yml | |
parent | 0e41181d547e2f89ffc503a7afc8b0f3991dd1a8 (diff) | |
download | zsh-aef393bdce523ed5e5754721965fab2da8080119.tar.gz zsh-aef393bdce523ed5e5754721965fab2da8080119.tar.bz2 zsh-aef393bdce523ed5e5754721965fab2da8080119.zip |
ci: add `check-spelling` GitHub Action
Diffstat (limited to '.github/workflows/spelling.yml')
-rw-r--r-- | .github/workflows/spelling.yml | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/spelling.yml b/.github/workflows/spelling.yml new file mode 100644 index 000000000..06a8b74c9 --- /dev/null +++ b/.github/workflows/spelling.yml @@ -0,0 +1,31 @@ +name: Spell checking +on: + pull_request_target: + push: + issue_comment: + types: [created] + +jobs: + spelling: + name: Spell checking + runs-on: ubuntu-latest + steps: + - name: checkout-merge + if: "contains(github.event_name, 'pull_request')" + uses: actions/checkout@v2 + with: + ref: refs/pull/${{github.event.pull_request.number}}/merge + - name: checkout + if: ${{ github.event_name == 'push' || + ( + contains(github.event.comment.body, '@check-spelling-bot apply') + ) }} + uses: actions/checkout@v2 + - uses: check-spelling/check-spelling@main + id: spelling + if: ${{ github.event_name != 'issue_comment' || + ( + contains(github.event.comment.body, '@check-spelling-bot apply') + ) }} + with: + experimental_apply_changes_via_bot: 1 |