From e3d260880029618d4817ce9de532013958f85951 Mon Sep 17 00:00:00 2001 From: cicdguy <26552821+cicdguy@users.noreply.github.com> Date: Wed, 8 Nov 2023 08:51:12 -0600 Subject: [PATCH] Add an exclude option for spellcheck workflows (#193) Add the ability to exclude files, filetypes for the spellcheck workflow. Signed-off-by: cicdguy <26552821+cicdguy@users.noreply.github.com> --- .github/workflows/spelling.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 ๐Ÿงผ