mirror of
https://github.com/ChrisTitusTech/linutil.git
synced 2024-11-05 13:15:21 +00:00
Fixed the spellcheck workflow (#557)
* Shellcheck.yml rewritten * dir * dir
This commit is contained in:
parent
77f8085e2c
commit
0378410187
23
.github/workflows/shellcheck.yml
vendored
23
.github/workflows/shellcheck.yml
vendored
|
@ -11,9 +11,20 @@ jobs:
|
||||||
name: Shellcheck
|
name: Shellcheck
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: Run ShellCheck
|
- run: git fetch origin ${{ github.base_ref }}
|
||||||
uses: ludeeus/action-shellcheck@master
|
|
||||||
with:
|
- name: Download and set up shellcheck
|
||||||
scandir: 'core/tabs'
|
run : |
|
||||||
severity: error
|
wget https://github.com/koalaman/shellcheck/releases/download/v0.10.0/shellcheck-v0.10.0.linux.x86_64.tar.xz
|
||||||
|
tar -xf shellcheck-v0.10.0.linux.x86_64.tar.xz
|
||||||
|
cd shellcheck-v0.10.0
|
||||||
|
chmod +x shellcheck
|
||||||
|
|
||||||
|
- name: Run shellcheck
|
||||||
|
run: |
|
||||||
|
for file in $(git diff --name-only origin/${{ github.base_ref }} HEAD core/tabs); do
|
||||||
|
if [[ "$file" == *.sh ]] && [[ -f "$file" ]]; then
|
||||||
|
./shellcheck-v0.10.0/shellcheck -S error "$file"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user