Skip to content

Commit 5be60c7

Browse files
committed
docs: improve args examples
1 parent 825a50d commit 5be60c7

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Diff for: README.md

+4-6
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ Add `.github/workflows/golangci-lint.yml` with the following contents:
2323
name: golangci-lint
2424
on:
2525
push:
26-
tags:
27-
- v*
2826
branches:
2927
- master
3028
- main
3129
pull_request:
30+
3231
permissions:
3332
contents: read
3433
# Optional: allow read access to pull request. Use with `only-new-issues` option.
3534
# pull-requests: read
35+
3636
jobs:
3737
golangci:
3838
name: lint
@@ -56,7 +56,7 @@ jobs:
5656
#
5757
# Note: by default the `.golangci.yml` file should be at the root of the repository.
5858
# The location of the configuration file can be changed by using `--config=`
59-
# args: --config=/my/path/.golangci.yml --issues-exit-code=0
59+
# args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0
6060

6161
# Optional: show only new issues if it's a pull request. The default value is `false`.
6262
# only-new-issues: true
@@ -83,8 +83,6 @@ If you need to run linters for specific operating systems, you will need to use
8383
name: golangci-lint
8484
on:
8585
push:
86-
tags:
87-
- v*
8886
branches:
8987
- master
9088
- main
@@ -122,7 +120,7 @@ jobs:
122120
#
123121
# Note: by default the `.golangci.yml` file should be at the root of the repository.
124122
# The location of the configuration file can be changed by using `--config=`
125-
# args: --config=/my/path/.golangci.yml --issues-exit-code=0
123+
# args: --timeout=30m --config=/my/path/.golangci.yml --issues-exit-code=0
126124

127125
# Optional: show only new issues if it's a pull request. The default value is `false`.
128126
# only-new-issues: true

0 commit comments

Comments
 (0)