diff --git a/.github/workflows/spelling.yaml b/.github/workflows/spelling.yaml index e9681c55..94a9a5a7 100644 --- a/.github/workflows/spelling.yaml +++ b/.github/workflows/spelling.yaml @@ -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 }} @@ -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 ๐Ÿงผ