mirror of
https://github.com/ludeeus/action-shellcheck.git
synced 2025-01-18 17:41:58 +01:00
Update
This commit is contained in:
parent
3a4806a465
commit
6eb62923bc
2
.github/workflows/push.yml
vendored
2
.github/workflows/push.yml
vendored
@ -10,4 +10,4 @@ jobs:
|
||||
- name: Run Shellcheck
|
||||
uses: ./
|
||||
with:
|
||||
ignore: "ignore"
|
||||
ignore: ignore
|
||||
|
@ -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.
|
||||
|
||||
|
@ -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[@]}" \
|
||||
|
Loading…
x
Reference in New Issue
Block a user