This commit is contained in:
ludeeus 2019-03-09 11:25:14 +01:00
commit 86748bd806
4 changed files with 60 additions and 0 deletions

16
.github/main.workflow vendored Normal file
View File

@ -0,0 +1,16 @@
workflow "Trigger: Push" {
on = "push"
resolves = [
"Shellcheck",
"Black Code Formatter",
]
}
action "Shellcheck" {
uses = "ludeeus/action-shellcheck@master"
}
action "Black Code Formatter" {
uses = "lgeiger/black-action@master"
args = "$GITHUB_WORKSPACE --check"
}

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM debian:latest
COPY runaction.sh /runaction.sh
RUN chmod +x /runaction.sh
RUN apt update
RUN apt install -y shellcheck
ENTRYPOINT ["/runaction.sh"]
LABEL "name"="shellcheck"
LABEL "maintainer"="Ludeeus <ludeeus@gmail.com>"
LABEL "version"="0.0.1"
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"
LABEL "com.github.actions.color"="black"

24
README.md Normal file
View File

@ -0,0 +1,24 @@
# SHELLCHECK
[![BuyMeCoffee][buymecoffeebedge]][buymecoffee]
_Run shellcheck on ALL sh files in the repository._
## Example
```
workflow "Shellcheck" {
on = "push"
resolves = [
"Shellcheck",
]
}
action "Shellcheck" {
uses = "ludeeus/actions/shellcheck@master"
}
```
[buymecoffee]: https://www.buymeacoffee.com/ludeeus
[buymecoffeebedge]: https://camo.githubusercontent.com/cd005dca0ef55d7725912ec03a936d3a7c8de5b5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6275792532306d6525323061253230636f666665652d646f6e6174652d79656c6c6f772e737667

4
runaction.sh Normal file
View File

@ -0,0 +1,4 @@
#!/bin/bash
cd "$GITHUB_WORKSPACE" || exit 1
find . -name \*.sh -exec shellcheck {} +