Skip to content

Commit 2bff406

Browse files
committed
doc: improve options documentation
1 parent 7a6f311 commit 2bff406

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ You will also likely need to add the following `.gitattributes` file to ensure t
107107
```yml
108108
uses: golangci/golangci-lint-action@v5
109109
with:
110-
version: v1.58
110+
version: latest
111111
# ...
112112
```
113113

action.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ inputs:
88
When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
99
When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
1010
required: false
11-
args:
12-
description: "golangci-lint command line arguments"
13-
default: ""
11+
install-mode:
12+
description: "The mode to install golangci-lint. It can be 'binary' or 'goinstall'."
13+
default: "binary"
1414
required: false
1515
working-directory:
1616
description: "golangci-lint working directory, default is project root"
@@ -35,9 +35,9 @@ inputs:
3535
restore existing caches, subject to other options.
3636
default: 'false'
3737
required: false
38-
install-mode:
39-
description: "The mode to install golangci-lint. It can be 'binary' or 'goinstall'."
40-
default: "binary"
38+
args:
39+
description: "golangci-lint command line arguments"
40+
default: ""
4141
required: false
4242
runs:
4343
using: "node20"

0 commit comments

Comments
 (0)