aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/linter-automated.yaml
blob: 6a1ac75a213fbb5ec6bd32d45c91f8ee9099a7f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
name: "(CI) Shell Script Linter"
on: 
  push:
    branches:
      - main
  pull_request:

jobs:
  shellchecker:
    runs-on: ubuntu-latest
    if: "!contains(github.event.head_commit.message, 'no-ci') && !contains(github.event.head_commit.message, 'CI ignore')"
    steps:
    - uses: actions/checkout@v2

    - name: Shell Linter
      uses: azohra/shell-linter@v0.6.0
      with:
        path: "src/**/*.sh"
        severity: "error" # [style, info, warning, error]