Skip to content

Commit 216dd8c

Browse files
shellcheck.yml
1 parent 24bf008 commit 216dd8c

File tree

1 file changed

+8
-14
lines changed

1 file changed

+8
-14
lines changed

.github/workflows/shellcheck.yml

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,22 @@
11
name: ShellCheck
2+
23
on:
34
push:
4-
branches: [ main ]
5+
branches:
6+
- main
57
pull_request:
6-
branches: [ main ]
8+
branches:
9+
- main
710

811
jobs:
912
shellcheck:
1013
runs-on: ubuntu-latest
1114
steps:
12-
- name: Checkout code
15+
- name: Checkout repository
1316
uses: actions/checkout@v4
1417

1518
- name: Install ShellCheck
16-
run: |
17-
sudo apt-get update
18-
sudo apt-get install -y shellcheck
19+
run: sudo apt-get install -y shellcheck
1920

2021
- name: Run ShellCheck
21-
run: |
22-
shopt -s globstar nullglob
23-
files=(**/*.sh)
24-
if (( ${#files[@]} == 0 )); then
25-
echo "No shell scripts found."
26-
exit 0
27-
fi
28-
shellcheck -x "${files[@]}"
22+
run: shellcheck add_whitelists.sh || true

0 commit comments

Comments
 (0)