Skip to content

Commit bdb5903

Browse files
authored
fix(provider): [121077884] update golangci lint (#3007)
* add * add * add * add
1 parent f83afbf commit bdb5903

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ jobs:
2222

2323
# Steps represent a sequence of tasks that will be executed as part of the job
2424
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+
2531
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2632
- uses: actions/checkout@v3
2733
with:
@@ -41,5 +47,5 @@ jobs:
4147
version: v1.48.0
4248
#version: v1.54
4349
working-directory: ./tencentcloud
44-
args: --new-from-rev=origin/master -v
50+
args: --new-from-rev=origin/master -v ${{ steps.getDiffFile.outputs.files }}
4551
#args: --enable-all --max-same-issues=0 --max-issues-per-linter=0 --new-from-rev=origin/master -v

0 commit comments

Comments
 (0)