mirror of
https://github.com/ludeeus/action-shellcheck.git
synced 2025-01-18 17:41:58 +01:00
init
This commit is contained in:
commit
86748bd806
16
.github/main.workflow
vendored
Normal file
16
.github/main.workflow
vendored
Normal 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
16
Dockerfile
Normal 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
24
README.md
Normal 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
4
runaction.sh
Normal file
@ -0,0 +1,4 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd "$GITHUB_WORKSPACE" || exit 1
|
||||
find . -name \*.sh -exec shellcheck {} +
|
Loading…
x
Reference in New Issue
Block a user