Skip to content

Commit

Permalink
Add support for .bashrc and .bash_profile
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Mar 14, 2019
1 parent e4a4096 commit 43d591f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
10 changes: 1 addition & 9 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -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"
}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ ENTRYPOINT ["/runaction.sh"]

LABEL "name"="shellcheck"
LABEL "maintainer"="Ludeeus <[email protected]>"
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"
Expand Down
4 changes: 3 additions & 1 deletion runaction.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/bin/bash

cd "$GITHUB_WORKSPACE" || exit 1
find . -name \*.sh -exec shellcheck {} +
find . -name \*.sh -exec shellcheck {} +
find . -name \*.bashrc -exec shellcheck {} +
find . -name \*.bash_profile -exec shellcheck {} +

0 comments on commit 43d591f

Please sign in to comment.