feat(restore): add non-interactive env-var mode to bootstrap #102
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| syntax-check: | |
| name: Bash syntax check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Check all shell scripts | |
| run: | | |
| failed=0 | |
| while IFS= read -r -d '' f; do | |
| if bash -n "$f" 2>&1; then | |
| echo " OK $f" | |
| else | |
| echo " FAIL $f" | |
| failed=1 | |
| fi | |
| done < <(grep -rl '#!/usr/bin/env bash\|#!/bin/bash' . \ | |
| --include="*.sh" --exclude-dir=".git" --exclude-dir="node_modules" \ | |
| -Z 2>/dev/null) | |
| exit $failed |