Skip to content

Commit

Permalink
Add an exclude option for spellcheck workflows (#193)
Browse files Browse the repository at this point in the history
Add the ability to exclude files, filetypes for the spellcheck workflow.

Signed-off-by: cicdguy <[email protected]>
  • Loading branch information
cicdguy authored Nov 8, 2023
1 parent 65b78d6 commit e3d2608
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/spelling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ on:
required: false
type: string
default: "."
exclude:
description: Comma separated list of files or folders to exclude from spellcheck. Accepts globs.
type: string
default: "inst/extdata/*"
required: false

concurrency:
group: spelling-${{ github.event.pull_request.number || github.ref }}
Expand Down Expand Up @@ -67,7 +72,7 @@ jobs:
- name: Run Spellcheck 👟
uses: insightsengineering/r-spellcheck-action@v2
with:
exclude: inst/extdata/*
exclude: ${{ inputs.exclude }}
path: ${{ env.package_subdirectory }}

- name: Clean up WORDLIST 🧼
Expand Down

0 comments on commit e3d2608

Please sign in to comment.