From 002f9ababc359ef6befa61fe0818cb3e7e98271e Mon Sep 17 00:00:00 2001 From: Igor Pecovnik Date: Tue, 24 Sep 2024 09:02:00 +0200 Subject: [PATCH] Bugfix: enable linter on bash files, not just executables ones --- .github/workflows/lint.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 047bb3b08..e3a430b38 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,6 +4,10 @@ on: workflow_dispatch: pull_request: +concurrency: + group: linter-${{github.event.pull_request.number}} + cancel-in-progress: true + jobs: Shellcheck: @@ -23,7 +27,7 @@ jobs: shell: bash {0} run: | - for file in $(find . -type f -executable ! -path '*/.git*/*' -exec grep -Iq . {} \; -print); do + for file in $(find . -name "*.sh" ! -path '*/.git*/*' -exec grep -Iq . {} \; -print); do if grep -qE "^#\!/.*bash" $file; then shellcheck --severity=error $file || ret=$? fi