Skip to content

Commit

Permalink
Ignore non zero exit from go generate
Browse files Browse the repository at this point in the history
  • Loading branch information
piersy committed Dec 21, 2024
1 parent c571688 commit 0876376
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,11 @@ jobs:

- name: Generate check
# Run go generate and see if anything changed.
# We need to use || true because currently we do not install protoc
# and protoc-gen-go which are required for genrating some files,
# however despite this the non protobuf related types are generated.
run: |
go generate ./...
go generate ./... || true
if [ -n "$(git status --porcelain)" ]; then
echo "Changes detected after running 'go generate ./...' run generate locally and commit the changes."
exit 1
Expand Down

0 comments on commit 0876376

Please sign in to comment.