Skip to content

Commit

Permalink
replace job
Browse files Browse the repository at this point in the history
  • Loading branch information
WooSungD committed Nov 10, 2023
1 parent 41850da commit 9fdaa4a
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions .github/workflows/spelling.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,25 +83,20 @@ jobs:
use_sarif: 1
extra_dictionary_limit: 10

update:
name: Update PR
comment-pr:
name: Report (PR)
# If you workflow isn't running on pull_request*, you can remove this job
runs-on: ubuntu-latest
needs: spelling
permissions:
contents: write
contents: read
pull-requests: write
actions: read
runs-on: ubuntu-latest
if: ${{
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains(github.event.comment.body, '@check-spelling-bot apply')
}}
concurrency:
group: spelling-update-${{ github.event.issue.number }}
cancel-in-progress: false
if: (success() || failure()) && needs.spelling.outputs.followup && contains(github.event_name, 'pull_request')
steps:
- name: apply spelling updates
- name: comment
uses: check-spelling/check-spelling@main
with:
experimental_apply_changes_via_bot: 1
checkout: true
ssh_key: "${{ secrets.CHECK_SPELLING }}"
spell_check_this: check-spelling/spell-check-this@prerelease
task: ${{ needs.spelling.outputs.followup }}
experimental_apply_changes_via_bot: 1

0 comments on commit 9fdaa4a

Please sign in to comment.