Skip to content

Commit

Permalink
DROPME show diff when generated code is not up to date
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanhaller authored and karimkhaleel committed Oct 4, 2023
1 parent 5028b74 commit da93ca4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ jobs:
- name: Check All Auto-Generated Files
# ensure all our auto-generated files are up to date
run: |
go generate ./... && git diff --quiet || (git status -s; echo "Auto-generated files not up to date. Run 'go generate ./...' locally and commit the changes" && exit 1)
go generate ./... && git diff --exit-code || (git status -s; echo "Auto-generated files not up to date. Run 'go generate ./...' locally and commit the changes" && exit 1)
shell: bash # needed so that we get "-o pipefail"
- name: Check Filenames
run: scripts/check_filenames.sh
Expand Down

0 comments on commit da93ca4

Please sign in to comment.