Skip to content

Shellcheck

Shellcheck #240

Workflow file for this run

name: Shellcheck
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "31 1,12 * * *"
workflow_dispatch:
jobs:
shellcheck:
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- run: |
if compgen -G "**/*.sh" > /dev/null; then
sudo apt-get update && sudo apt-get install -y shellcheck
find . -name "*.sh" -print0 | xargs -0 shellcheck
else
echo "No shell scripts; skipping"
fi