File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 9
9
branches :
10
10
- main
11
11
pull_request :
12
+
12
13
permissions :
13
14
contents : read
14
- # Optional: allow read access to pull request. Use with `only-new-issues` option.
15
- # pull-requests: read
15
+ pull-requests : read
16
+
16
17
jobs :
17
18
golangci :
18
19
name : lint
19
20
runs-on : ubuntu-latest
20
21
steps :
21
- - uses : actions/checkout@v2
22
- - uses : actions/setup-go@v3
22
+ - uses : actions/checkout@v3
23
+ - uses : actions/setup-go@v4
23
24
with :
24
25
go-version : 1.20.x
26
+ cache : false
25
27
- name : golangci-lint
26
28
uses : golangci/golangci-lint-action@v3
27
29
with :
28
- # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
29
- version : v1.53.3 # current version at time of commit
30
- args : --timeout 10m
31
- only-new-issues : true
30
+ version : v1.54 # current version at time of commit
31
+ args : --timeout=10m
32
+ # Only show new issues in a PR but show all issues for pushes
33
+ only-new-issues : ${{ github.event_name == 'pull_request' && ' true' || 'false' }}
You can’t perform that action at this time.
0 commit comments