From 56a440e4a75d722ecbd0ab2ae0169f00e727c978 Mon Sep 17 00:00:00 2001 From: Jan Macku Date: Sun, 18 Sep 2022 23:57:43 +0200 Subject: [PATCH] Add Shell linter - Differential-ShellCheck (#1419) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jan Macku Co-authored-by: Mislav Marohnić --- .github/workflows/lint.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..340912e --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,24 @@ +--- + +name: Lint +on: + pull_request: + branches: [master] + +permissions: + contents: read + +jobs: + shellcheck: + runs-on: ubuntu-latest + + steps: + - name: Repository checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Differential ShellCheck + uses: redhat-plumbers-in-action/differential-shellcheck@latest + with: + token: ${{ secrets.GITHUB_TOKEN }}