mirror of
https://github.com/ludeeus/action-shellcheck.git
synced 2025-01-18 17:41:58 +01:00
Allow specifying ShellCheck version (#44)
Co-authored-by: Joakim Sørensen <hi@ludeeus.dev>
This commit is contained in:
parent
ceeca77f65
commit
7606914ded
12
README.md
12
README.md
@ -147,3 +147,15 @@ Only `tty` and `gcc` produce file annotations via problem matcher, default is `g
|
|||||||
with:
|
with:
|
||||||
format: tty
|
format: tty
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Run a specific version of Shellcheck
|
||||||
|
|
||||||
|
If running the latest stable version of Shellcheck is not to your liking, you can specify a concrete version of Shellcheck to be used. When specifying a custom version, please use any of the released versions listed in the [Shellcheck repository](https://github.com/koalaman/shellcheck/tags).
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
...
|
||||||
|
- name: Run ShellCheck
|
||||||
|
uses: ludeeus/action-shellcheck@master
|
||||||
|
with:
|
||||||
|
shellcheck_version: v0.7.0
|
||||||
|
```
|
||||||
|
@ -30,6 +30,10 @@ inputs:
|
|||||||
description: "Output format (checkstyle, diff, gcc, json, json1, quiet, tty)"
|
description: "Output format (checkstyle, diff, gcc, json, json1, quiet, tty)"
|
||||||
required: false
|
required: false
|
||||||
default: "gcc"
|
default: "gcc"
|
||||||
|
shellcheck_version:
|
||||||
|
description: "Specify a concrete version of ShellCheck to use"
|
||||||
|
required: false
|
||||||
|
default: "stable"
|
||||||
outputs:
|
outputs:
|
||||||
files:
|
files:
|
||||||
description: A list of files with issues
|
description: A list of files with issues
|
||||||
@ -60,7 +64,7 @@ runs:
|
|||||||
osvariant="linux"
|
osvariant="linux"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
scversion="stable"
|
scversion="${{ inputs.shellcheck_version }}"
|
||||||
baseurl="https://github.com/koalaman/shellcheck/releases/download"
|
baseurl="https://github.com/koalaman/shellcheck/releases/download"
|
||||||
|
|
||||||
curl -Lso "${{ github.action_path }}/sc.tar.xz" \
|
curl -Lso "${{ github.action_path }}/sc.tar.xz" \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user