Skip to content

Commit bc25a6b

Browse files
committed
add
1 parent 5d4305a commit bc25a6b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 6 additions & 6 deletions
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:
@@ -34,12 +40,6 @@ jobs:
3440
#go-version: '1.21'
3541
cache: false
3642

37-
- name: 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-
4343
# Runs a set of commands using the runners shell
4444
- name: golangci-lint
4545
uses: golangci/golangci-lint-action@v3

0 commit comments

Comments
 (0)