mirror of
https://github.com/ludeeus/action-shellcheck.git
synced 2024-08-16 10:09:53 +02:00
simplify
This commit is contained in:
parent
fa3cc6ede4
commit
21696cbf1a
2 changed files with 3 additions and 4 deletions
3
.github/workflows/push.yml
vendored
3
.github/workflows/push.yml
vendored
|
@ -5,7 +5,8 @@ jobs:
|
||||||
name: Shellcheck
|
name: Shellcheck
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- name: Checkout
|
||||||
|
uses: actions/checkout@master
|
||||||
- name: Run Shellcheck
|
- name: Run Shellcheck
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -11,10 +11,8 @@ statuscode=0
|
||||||
|
|
||||||
excludes+=( ! -path *./.git/* )
|
excludes+=( ! -path *./.git/* )
|
||||||
for path in ${INPUT_IGNORE}; do
|
for path in ${INPUT_IGNORE}; do
|
||||||
[[ ${path#./*} != "$path" ]] || path=./${path}
|
|
||||||
|
|
||||||
echo "::debug:: Adding '${path}' to excludes"
|
echo "::debug:: Adding '${path}' to excludes"
|
||||||
excludes+=(! -path *"${path}"* )
|
excludes+=(! -path *"./${path}/"* )
|
||||||
done
|
done
|
||||||
|
|
||||||
readarray -d '' filepaths < <(find . "${excludes[@]}" \
|
readarray -d '' filepaths < <(find . "${excludes[@]}" \
|
||||||
|
|
Loading…
Reference in a new issue