Skip to content

Commit aaa42aa

Browse files
authored
feat: allow to skip golangci-lint installation (#1079)
1 parent 9ec8973 commit aaa42aa

File tree

8 files changed

+753
-19
lines changed

8 files changed

+753
-19
lines changed

README.md

+5-3
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,10 @@ You will also likely need to add the following `.gitattributes` file to ensure t
261261

262262
The version of golangci-lint to use.
263263

264-
* When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
265-
* When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
264+
When `install-mode` is:
265+
* `binary` (default): the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
266+
* `goinstall`: the value can be v1.2.3, `latest`, or the hash of a commit.
267+
* `none`: the value is ignored.
266268

267269
<details>
268270
<summary>Example</summary>
@@ -280,7 +282,7 @@ with:
280282

281283
(optional)
282284

283-
The mode to install golangci-lint: it can be `binary` or `goinstall`.
285+
The mode to install golangci-lint: it can be `binary`, `goinstall`, or `none`.
284286

285287
The default value is `binary`.
286288

action.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ inputs:
66
version:
77
description: |
88
The version of golangci-lint to use.
9-
When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
10-
When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
9+
When `install-mode` is:
10+
- `binary` (default): the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
11+
- `goinstall`: the value can be v1.2.3, `latest`, or the hash of a commit.
12+
- `none`: the value is ignored.
1113
required: false
1214
install-mode:
13-
description: "The mode to install golangci-lint. It can be 'binary' or 'goinstall'."
15+
description: "The mode to install golangci-lint. It can be 'binary', 'goinstall', or 'none'."
1416
default: "binary"
1517
required: false
1618
working-directory:

0 commit comments

Comments
 (0)