@@ -23,41 +23,23 @@ jobs:
23
23
# Steps represent a sequence of tasks that will be executed as part of the job
24
24
steps :
25
25
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26
- - uses : actions/checkout@v3
26
+ - uses : actions/checkout@v4
27
27
with :
28
28
fetch-depth : 0
29
29
ref : ${{ github.event.pull_request.head.sha }}
30
30
31
- - uses : actions/setup-go@v3
31
+ - uses : actions/setup-go@v5
32
32
with :
33
33
go-version-file : .go-version
34
- # go-version: '1.21'
34
+ go-version : ' 1.21'
35
35
cache : false
36
-
37
- - name : Get list of changed files
38
- id : getDiffFile
39
- run : |
40
- echo "::set-output name=files::$(git diff --name-only origin/master | grep '^tencentcloud/.*\.go$' | xargs)"
41
- shell : bash
42
-
43
- - name : Check for changed Go files
44
- id : checkDiffFile
45
- run : |
46
- if [ -z "${{ steps.getDiffFile.outputs.files }}" ]; then
47
- echo "No Go files changed."
48
- exit 0
49
- fi
50
-
51
- - name : Print changed files
52
- id : showDiffFile
53
- run : |
54
- echo "Changed Go files: ${{ steps.getDiffFile.outputs.files }}"
55
36
56
37
# Runs a set of commands using the runners shell
57
38
- name : golangci-lint
58
- uses : golangci/golangci-lint-action@v3
39
+ uses : golangci/golangci-lint-action@v4
59
40
with :
60
- version : v1.63.4
61
- working-directory : .
62
- args : --new-from-rev=origin/master -v ${{ steps.getDiffFile.outputs.files }}
63
- # args: --enable-all --max-same-issues=0 --max-issues-per-linter=0 --new-from-rev=origin/master -v
41
+ skip-cache : true
42
+ version : v1.54
43
+ working-directory : ./tencentcloud
44
+ args : --new-from-rev=origin/master -v
45
+ # args: --enable-all --max-same-issues=0 --max-issues-per-linter=0 --new-from-rev=origin/master -v
0 commit comments