From 43d591f97276cf3883b8d6fd0341ecb1cc67142f Mon Sep 17 00:00:00 2001 From: ludeeus Date: Thu, 14 Mar 2019 18:15:36 +0100 Subject: [PATCH] Add support for .bashrc and .bash_profile --- .github/main.workflow | 10 +--------- Dockerfile | 2 +- runaction.sh | 4 +++- 3 files changed, 5 insertions(+), 11 deletions(-) diff --git a/.github/main.workflow b/.github/main.workflow index a457525..a412d01 100644 --- a/.github/main.workflow +++ b/.github/main.workflow @@ -1,16 +1,8 @@ workflow "Trigger: Push" { on = "push" - resolves = [ - "Shellcheck", - "Black Code Formatter", - ] + resolves = ["Shellcheck"] } action "Shellcheck" { uses = "ludeeus/action-shellcheck@master" -} - -action "Black Code Formatter" { - uses = "lgeiger/black-action@master" - args = "$GITHUB_WORKSPACE --check" } \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index a1d7172..5731da8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ ENTRYPOINT ["/runaction.sh"] LABEL "name"="shellcheck" LABEL "maintainer"="Ludeeus " -LABEL "version"="0.0.1" +LABEL "version"="0.1.0" LABEL "com.github.actions.name"="shellcheck" LABEL "com.github.actions.description"="Run shell check on ALL sh files in the repository." LABEL "com.github.actions.icon"="terminal" diff --git a/runaction.sh b/runaction.sh index c0b48ca..bfdb171 100644 --- a/runaction.sh +++ b/runaction.sh @@ -1,4 +1,6 @@ #!/bin/bash cd "$GITHUB_WORKSPACE" || exit 1 -find . -name \*.sh -exec shellcheck {} + \ No newline at end of file +find . -name \*.sh -exec shellcheck {} + +find . -name \*.bashrc -exec shellcheck {} + +find . -name \*.bash_profile -exec shellcheck {} + \ No newline at end of file