We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24bf008 commit 216dd8cCopy full SHA for 216dd8c
.github/workflows/shellcheck.yml
@@ -1,28 +1,22 @@
1
name: ShellCheck
2
+
3
on:
4
push:
- branches: [ main ]
5
+ branches:
6
+ - main
7
pull_request:
8
9
10
11
jobs:
12
shellcheck:
13
runs-on: ubuntu-latest
14
steps:
- - name: Checkout code
15
+ - name: Checkout repository
16
uses: actions/checkout@v4
17
18
- name: Install ShellCheck
- run: |
- sudo apt-get update
- sudo apt-get install -y shellcheck
19
+ run: sudo apt-get install -y shellcheck
20
21
- name: Run ShellCheck
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[@]}"
+ run: shellcheck add_whitelists.sh || true
0 commit comments