Merge pull request #58 from chrultrabook/revert-55-main #120
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Spell Check | |
on: | |
push: | |
branches: | |
- "**" | |
tags-ignore: | |
- "**" | |
pull_request_target: | |
branches: | |
- "**" | |
tags-ignore: | |
- "**" | |
types: | |
- 'opened' | |
- 'reopened' | |
- 'synchronize' | |
issue_comment: | |
types: | |
- 'created' | |
jobs: | |
spelling: | |
name: Check Spelling | |
permissions: | |
contents: read | |
pull-requests: read | |
actions: read | |
security-events: write | |
outputs: | |
followup: ${{ steps.spelling.outputs.followup }} | |
runs-on: ubuntu-latest | |
if: "contains(github.event_name, 'pull_request') || github.event_name == 'push'" | |
concurrency: | |
group: spelling-${{ github.event.pull_request.number || github.ref }} | |
# note: If you use only_check_changed_files, you do not want cancel-in-progress | |
cancel-in-progress: true | |
steps: | |
- name: check-spelling | |
id: spelling | |
uses: check-spelling/check-spelling@main | |
with: | |
suppress_push_for_open_pull_request: 1 | |
checkout: true | |
check_file_names: 1 | |
spell_check_this: check-spelling/spell-check-this@prerelease | |
post_comment: 0 | |
use_magic_file: 1 | |
experimental_apply_changes_via_bot: 0 | |
use_sarif: 0 | |
extra_dictionary_limit: 10 | |
comment-push: | |
name: Report (Push) | |
# If your workflow isn't running on push, you can remove this job | |
runs-on: ubuntu-latest | |
needs: spelling | |
permissions: | |
contents: write | |
if: (success() || failure()) && needs.spelling.outputs.followup && github.event_name == 'push' | |
steps: | |
- name: comment | |
uses: check-spelling/check-spelling@main | |
with: | |
checkout: true | |
spell_check_this: check-spelling/spell-check-this@prerelease | |
task: ${{ needs.spelling.outputs.followup }} | |
# Removed PR portions to make bot shut the hell up | |
# - meghan6 |