doc: improve options documentation
This commit is contained in:
parent
7a6f31107b
commit
2bff406277
@ -107,7 +107,7 @@ You will also likely need to add the following `.gitattributes` file to ensure t
|
|||||||
```yml
|
```yml
|
||||||
uses: golangci/golangci-lint-action@v5
|
uses: golangci/golangci-lint-action@v5
|
||||||
with:
|
with:
|
||||||
version: v1.58
|
version: latest
|
||||||
# ...
|
# ...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
12
action.yml
12
action.yml
@ -8,9 +8,9 @@ inputs:
|
|||||||
When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
|
When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
|
||||||
When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
|
When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
|
||||||
required: false
|
required: false
|
||||||
args:
|
install-mode:
|
||||||
description: "golangci-lint command line arguments"
|
description: "The mode to install golangci-lint. It can be 'binary' or 'goinstall'."
|
||||||
default: ""
|
default: "binary"
|
||||||
required: false
|
required: false
|
||||||
working-directory:
|
working-directory:
|
||||||
description: "golangci-lint working directory, default is project root"
|
description: "golangci-lint working directory, default is project root"
|
||||||
@ -35,9 +35,9 @@ inputs:
|
|||||||
restore existing caches, subject to other options.
|
restore existing caches, subject to other options.
|
||||||
default: 'false'
|
default: 'false'
|
||||||
required: false
|
required: false
|
||||||
install-mode:
|
args:
|
||||||
description: "The mode to install golangci-lint. It can be 'binary' or 'goinstall'."
|
description: "golangci-lint command line arguments"
|
||||||
default: "binary"
|
default: ""
|
||||||
required: false
|
required: false
|
||||||
runs:
|
runs:
|
||||||
using: "node20"
|
using: "node20"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user