mirror of
https://github.com/ludeeus/action-shellcheck.git
synced 2024-08-16 10:09:53 +02:00
Update
This commit is contained in:
parent
3a4806a465
commit
6eb62923bc
3 changed files with 4 additions and 4 deletions
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…
Reference in a new issue