This repository has been archived by the owner on Dec 6, 2023. It is now read-only.
Bump actions/checkout from 3 to 4 #28
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 scripts | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
Shellcheck: | |
name: Shell script analysis | |
runs-on: ubuntu-latest | |
if: ${{ github.repository_owner == 'Armbian' }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Environment variables | |
run: sudo -E bash -c set | |
- name: "Shellcheck lint error report in diff format" | |
shell: bash {0} | |
run: | | |
for file in $(find . -type f -executable ! -path '*/.git*/*' -exec grep -Iq . {} \; -print); do shellcheck -x $file; done |