@@ -23,41 +23,23 @@ jobs:
2323 # Steps represent a sequence of tasks that will be executed as part of the job
2424 steps :
2525 # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
26- - uses : actions/checkout@v3
26+ - uses : actions/checkout@v4
2727 with :
2828 fetch-depth : 0
2929 ref : ${{ github.event.pull_request.head.sha }}
3030
31- - uses : actions/setup-go@v3
31+ - uses : actions/setup-go@v5
3232 with :
3333 go-version-file : .go-version
34- # go-version: '1.21'
34+ go-version : ' 1.21'
3535 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 }}"
5536
5637 # Runs a set of commands using the runners shell
5738 - name : golangci-lint
58- uses : golangci/golangci-lint-action@v3
39+ uses : golangci/golangci-lint-action@v4
5940 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