Minor book improvements and shellcheck CI (#194) #2
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: ShellCheck eBook | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "ebook/en/content/**" | |
| - "scripts/shellcheck-ebook.sh" | |
| pull_request: | |
| paths: | |
| - "ebook/en/content/**" | |
| - "scripts/shellcheck-ebook.sh" | |
| jobs: | |
| shellcheck: | |
| name: Lint bash code blocks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install ShellCheck | |
| run: sudo apt-get update && sudo apt-get install -y shellcheck | |
| - name: Run ShellCheck on ebook code blocks | |
| run: ./scripts/shellcheck-ebook.sh ebook/en/content |