From dda533205a4e4915e3f92186d713e7e52c0f7c84 Mon Sep 17 00:00:00 2001 From: bofhbug <1086634+bofhbug@users.noreply.github.com> Date: Wed, 21 Jul 2021 21:13:54 +0000 Subject: [PATCH 1/2] Create sh-checker.yaml --- .github/workflows/sh-checker.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/sh-checker.yaml diff --git a/.github/workflows/sh-checker.yaml b/.github/workflows/sh-checker.yaml new file mode 100644 index 0000000..859e89c --- /dev/null +++ b/.github/workflows/sh-checker.yaml @@ -0,0 +1,17 @@ +name: sh-checker +on: + - pull_request +jobs: + sh-checker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: Run the sh-checker + uses: luizm/action-sh-checker@master + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + #SHELLCHECK_OPTS: -e SC1004 # exclude some shellcheck warnings. + SHFMT_OPTS: -s # arguments to shfmt. + with: + sh_checker_comment: true + #sh_checker_exclude: ".terraform ^dir/example.sh" From 7f9c9239c9e0a1f3534c9df4bb0989de8c995bf4 Mon Sep 17 00:00:00 2001 From: Maximilian Bischoff Date: Tue, 9 Nov 2021 15:45:25 +0100 Subject: [PATCH 2/2] Disable PR comments by shell-check action --- .github/workflows/sh-checker.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/sh-checker.yaml b/.github/workflows/sh-checker.yaml index 859e89c..130c009 100644 --- a/.github/workflows/sh-checker.yaml +++ b/.github/workflows/sh-checker.yaml @@ -9,9 +9,8 @@ jobs: - name: Run the sh-checker uses: luizm/action-sh-checker@master env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} #SHELLCHECK_OPTS: -e SC1004 # exclude some shellcheck warnings. SHFMT_OPTS: -s # arguments to shfmt. with: - sh_checker_comment: true + sh_checker_comment: false #sh_checker_exclude: ".terraform ^dir/example.sh"