diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index a85e862..5f0c204 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -10,4 +10,4 @@ jobs: - name: Run Shellcheck uses: ./ with: - ignore: "ignore" + ignore: ignore diff --git a/README.md b/README.md index 294beb8..cc5e239 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ example: SHELLCHECK_OPTS: -e SC2059 -e SC2034 -e SC1090 ``` -## Disable paths +## Ignore paths You can use the `ignore` input to disable specific directories. diff --git a/runaction.sh b/runaction.sh index 27eaef1..9ab034b 100755 --- a/runaction.sh +++ b/runaction.sh @@ -11,8 +11,8 @@ statuscode=0 excludes+=( ! -path *./.git/* ) for path in ${INPUT_IGNORE}; do - echo "::debug:: Adding '${path}' to excludes" - excludes+=(! -path *"./${path}/"* ) + echo "::debug:: Adding '*./${path}/*' to excludes" + excludes+=(! -path "*./${path}/*" ) done readarray -d '' filepaths < <(find . "${excludes[@]}" \