20 lines
521 B
YAML
20 lines
521 B
YAML
name: Reusable - Shell script check
|
|
|
|
on:
|
|
workflow_call:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
shell-script-check:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: Install shell check
|
|
run: wget -qO- "https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.linux.x86_64.tar.xz" | tar -xJv
|
|
|
|
- name: Run shellcheck
|
|
run: find -name '*.sh' | xargs shellcheck-stable/shellcheck --format=gcc
|