This repository was archived by the owner on Mar 13, 2026. It is now read-only.
Add GNOME Shell extensions via git submodules with version validation disabled #5
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: Validate Shell Scripts | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| paths: | |
| - "build/**/*.sh" | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v5 | |
| - name: Install ShellCheck | |
| shell: bash | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y shellcheck | |
| - name: Validate Shell Scripts | |
| shell: bash | |
| run: | | |
| echo "Running shellcheck on build scripts..." | |
| set -xeuo pipefail | |
| find "build" -iname '*.sh' -print0 | \ | |
| while IFS= read -r -d '' script ; do \ | |
| echo "::group:: ===$(basename "$script")===" | |
| shellcheck -x "$script" | |
| echo "✓ $script passed shellcheck" | |
| echo "::endgroup::" | |
| done | |
| echo "All shell scripts passed validation" |