build: Update to latest profile template #87
This file contains 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: Lint Shell | |
on: [push, pull_request] | |
jobs: | |
build: | |
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
sudo apt update | |
sudo apt install devscripts shellcheck shfmt | |
- run: checkbashisms $(shfmt -f .) | |
- run: shellcheck $(shfmt -f .) | |
- run: shfmt -d -i 4 -sr $(shfmt -f .) |