Add Shell linter - Differential-ShellCheck (#1419)

Signed-off-by: Jan Macku <jamacku@redhat.com>
Co-authored-by: Mislav Marohnić <git@mislav.net>
This commit is contained in:
Jan Macku 2022-09-18 23:57:43 +02:00 committed by GitHub
parent a8ecfc743e
commit 56a440e4a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

24
.github/workflows/lint.yml vendored Normal file
View file

@ -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 }}