Skip to content

Commit 19cc74b

Browse files
authored
ci: only check for diffs in source code and generated artifacts (at dev time) (#1370)
1 parent 6538cec commit 19cc74b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
5555
- name: Check if Go code has changed
5656
run: |
57-
if git diff --exit-code; then
57+
if git diff --exit-code -- '*.go' '*.proto' '*.yaml' '*.json' ':!*.sum'; then
5858
echo "Generated Go code has not changed."
5959
else
6060
echo "Generated Go code has changed. Please make sure to commit the changes."

0 commit comments

Comments
 (0)