Skip to content

Commit 9800c5a

Browse files
committed
add
1 parent 5aa2181 commit 9800c5a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/golangci-lint.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,14 @@ jobs:
4040
echo "::set-output name=files::$(git diff --name-only origin/master | grep '\.go$' | xargs)"
4141
shell: bash
4242

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+
4351
- name: Print changed files
4452
id: showDiffFile
4553
run: |

0 commit comments

Comments
 (0)