name: Contrib script syntax checking on: push: paths: [ 'contrib/**', .github/scripts/check-contrib.sh ] pull_request: paths: [ 'contrib/**', .github/scripts/check-contrib.sh ] workflow_dispatch: env: # Force colored output (see https://bixense.com/clicolors/ and https://force-color.org/) TERM: xterm-256color CLICOLOR: 1 CLICOLOR_FORCE: 1 jobs: check-contrib: runs-on: ubuntu-slim steps: - name: Checkout repo uses: actions/checkout@v7 with: sparse-checkout: | # Avoid checking out other files, we don't use them here. contrib .github/scripts - name: Install zsh run: | sudo apt install -Uyq zsh - name: Check contrib scripts run: | .github/scripts/check-contrib.sh