File tree 1 file changed +12
-7
lines changed
1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change 22
22
23
23
# Steps represent a sequence of tasks that will be executed as part of the job
24
24
steps :
25
- - name : list of changed files
26
- id : getDiffFile
27
- run : |
28
- echo "::set-output name=files::$(git diff --name-only origin/master | grep '\.go$' | xargs)"
29
- shell : bash
30
-
31
25
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
32
26
- uses : actions/checkout@v3
33
27
with :
@@ -39,12 +33,23 @@ jobs:
39
33
go-version-file : .go-version
40
34
# go-version: '1.21'
41
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 '\.go$' | xargs)"
41
+ shell : bash
42
+
43
+ - name : Print changed files
44
+ id : showDiffFile
45
+ run : |
46
+ echo "Changed Go files: ${{ steps.getDiffFile.outputs.files }}"
42
47
43
48
# Runs a set of commands using the runners shell
44
49
- name : golangci-lint
45
50
uses : golangci/golangci-lint-action@v3
46
51
with :
47
- version : v1.48.0
52
+ version : v1.63.4
48
53
# version: v1.54
49
54
working-directory : ./tencentcloud
50
55
args : --new-from-rev=origin/master -v ${{ steps.getDiffFile.outputs.files }}
You can’t perform that action at this time.
0 commit comments