Skip to content

Commit 8078b42

Browse files
committed
docs: improve version description
1 parent 1577f9c commit 8078b42

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ jobs:
4646
- name: golangci-lint
4747
uses: golangci/golangci-lint-action@v3
4848
with:
49-
# Require: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
49+
# Require: The version of golangci-lint to use.
50+
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
51+
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
5052
version: v1.53
5153

5254
# Optional: working directory, useful for monorepos
@@ -113,7 +115,9 @@ jobs:
113115
- name: golangci-lint
114116
uses: golangci/golangci-lint-action@v3
115117
with:
116-
# Require: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
118+
# Require: The version of golangci-lint to use.
119+
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
120+
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
117121
version: v1.53
118122

119123
# Optional: working directory, useful for monorepos

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@ description: "Official golangci-lint action with line-attached annotations for f
33
author: "golangci"
44
inputs:
55
version:
6-
description: "version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version"
6+
description: |
7+
The version of golangci-lint to use.
8+
When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
9+
When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
710
required: false
811
args:
912
description: "golangci-lint command line arguments"

0 commit comments

Comments
 (0)