mirror of
https://github.com/ludeeus/action-shellcheck.git
synced 2025-09-15 04:36:26 +02:00
Fix warnings reported by shellcheck (#61)
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
This commit is contained in:
12
.github/workflows/scandir.yml
vendored
12
.github/workflows/scandir.yml
vendored
@@ -1,6 +1,6 @@
|
||||
name: 'scandir'
|
||||
|
||||
on:
|
||||
on:
|
||||
push:
|
||||
branches: ["master"]
|
||||
pull_request:
|
||||
@@ -25,8 +25,8 @@ jobs:
|
||||
scandir: testfiles/scandir
|
||||
|
||||
- name: Verify check
|
||||
run: |
|
||||
expect="testfiles/scandir/test.bash"
|
||||
run: |
|
||||
expect="testfiles/scandir/run[[:space:]]me.bash"
|
||||
notexpect="testfiles/test.bash"
|
||||
|
||||
if [[ ! "${{ steps.one.outputs.files }}" =~ $expect ]];then
|
||||
@@ -35,7 +35,7 @@ jobs:
|
||||
elif [[ "${{ steps.one.outputs.files }}" =~ $notexpect ]];then
|
||||
echo "::error:: Expected file $notexpect found in ${{ steps.one.outputs.files }}"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
- name: Run ShellCheck
|
||||
uses: ./
|
||||
@@ -45,7 +45,7 @@ jobs:
|
||||
ignore_paths: ignore
|
||||
|
||||
- name: Verify check
|
||||
run: |
|
||||
run: |
|
||||
expect="testfiles/scandir/test.bash"
|
||||
notexpect="testfiles/test.bash"
|
||||
|
||||
@@ -55,4 +55,4 @@ jobs:
|
||||
elif [[ "${{ steps.two.outputs.files }}" =~ $notexpect ]];then
|
||||
echo "::error:: Expected file $notexpect found in ${{ steps.two.outputs.files }}"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
Reference in New Issue
Block a user