From 496193b6a1a654fdc8cccbd3f164e776ae0c02e4 Mon Sep 17 00:00:00 2001 From: cicdguy <26552821+cicdguy@users.noreply.github.com> Date: Mon, 6 Nov 2023 11:06:59 -0600 Subject: [PATCH] Add an exclude option for spellcheck workflows 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 ๐Ÿงผ