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