name: Lint Shell files

on:
  pull_request:
    branches: ["*"]
    types: ["opened","edited"]
  workflow_dispatch: {}

jobs:
  shellcheck:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4.2.2
    - run: apt install shellcheck
    - run: find . -type f -name "*.sh" -exec shellcheck -a {} \;