Skip to content

Commit 47f5bbd

Browse files
committed
ci: standardize shellcheck to use ludeeus/action-shellcheck
1 parent 7e6fcde commit 47f5bbd

1 file changed

Lines changed: 16 additions & 11 deletions

File tree

.github/workflows/shellcheck.yml

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,26 @@
1+
---
12
name: ShellCheck
23

3-
on: [push, pull_request]
4+
"on":
5+
push:
6+
branches: [main]
7+
paths:
8+
- "**/*.sh"
9+
pull_request:
10+
paths:
11+
- "**/*.sh"
12+
13+
permissions:
14+
contents: read
415

516
jobs:
617
shellcheck:
718
name: Run ShellCheck
819
runs-on: ubuntu-latest
920
timeout-minutes: 5
1021
steps:
11-
- name: Checkout code
12-
uses: actions/checkout@v6
13-
14-
- name: Install ShellCheck
15-
run: sudo apt-get install -y shellcheck
16-
17-
- name: Bash Syntax Check
18-
run: find . -type f -name "*.sh" -exec bash -n {} \;
22+
- uses: actions/checkout@v6
1923

20-
- name: Run ShellCheck
21-
run: find . -type f -name "*.sh" -exec shellcheck --severity=warning {} +
24+
- uses: ludeeus/action-shellcheck@2.0.0
25+
with:
26+
severity: warning

0 commit comments

Comments
 (0)