Run ShellCheck directly in GitHub Actions

Signed-off-by: sarfraj89 <try.sarfraj@gmail.com>
pull/31704/head
sarfraj89 2 weeks ago
parent 09d78c17ce
commit 7f1867d436

@ -1,14 +1,14 @@
name: ShellCheck
name: Lint Bash Scripts
on:
workflow_dispatch:
pull_request:
paths:
- 'scripts/**.sh'
push:
branches:
- main
paths:
- '**.sh'
- '.github/workflows/shellcheck.yml'
- 'scripts/**.sh'
permissions:
contents: read
@ -17,12 +17,10 @@ jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Checkout code
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Run ShellCheck
uses: ludeeus/action-shellcheck@master
with:
scandir: scripts
severity: error
run: shellcheck ./scripts/**/*.sh
Loading…
Cancel
Save