Skip to content

Commit ef49cbf

Browse files
authored
Adjust generated code diff (#489)
1 parent e5ff8a8 commit ef49cbf

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/check-go-generate.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@ jobs:
3535
- name: Check for changes
3636
id: check_changes
3737
run: |
38-
# Create a temporary file for the diff, ignoring footer lines and protoc versions
39-
git diff --ignore-matching-lines="Auto generated by spf13/cobra on" --ignore-matching-lines="protoc v[0-9]" > changes.diff
40-
38+
# Create a temporary file for the diff, ignoring footer lines
39+
# Also ignore BASE protoc version; DO CHECK protoc-gen-go, protoc-gen-go-grpc versions
40+
git diff \
41+
--ignore-matching-lines="Auto generated by spf13/cobra " \
42+
--ignore-matching-lines="protoc " \
43+
> changes.diff
44+
4145
# Check if there are any changes
4246
if [ -s changes.diff ]; then
4347
echo "has_changes=true" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)