We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f83afbf commit bdb5903Copy full SHA for bdb5903
.github/workflows/golangci-lint.yml
@@ -22,6 +22,12 @@ jobs:
22
23
# Steps represent a sequence of tasks that will be executed as part of the job
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
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
32
- uses: actions/checkout@v3
33
with:
@@ -41,5 +47,5 @@ jobs:
41
47
version: v1.48.0
42
48
#version: v1.54
43
49
working-directory: ./tencentcloud
44
- args: --new-from-rev=origin/master -v
50
+ args: --new-from-rev=origin/master -v ${{ steps.getDiffFile.outputs.files }}
45
51
#args: --enable-all --max-same-issues=0 --max-issues-per-linter=0 --new-from-rev=origin/master -v
0 commit comments