Create sh-checker.yml

pull/123/head
IceCodeNew 2020-09-19 23:58:38 +08:00
parent 4a4f52a68c
commit e7e9e9a47d
1 changed files with 15 additions and 0 deletions

15
.github/workflows/sh-checker.yml vendored Normal file
View File

@ -0,0 +1,15 @@
name: static analysis for shell scripts using shellcheck and shfmt
on:
- pull_request
jobs:
sh-checker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run the sh-checker
uses: luizm/action-sh-checker@v0.1.7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
sh_checker_comment: true
sh_checker_exclude: "LICENSE README.md README.zh-Hans-CN.md"