Skip to content

Commit

Permalink
tests: print diff if changed are detected after dev/format-gomod
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsb committed Jul 2, 2024
1 parent 5fc3e7a commit 0a3c800
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ jobs:
- run: |
changes=$(git status --porcelain)
if [[ -n "${changes}" ]]; then
echo "::error Changes detected from go mod tidy:"
echo "::error Changes detected from dev/format-gomod:"
git diff | head -n60
echo "${changes}"
exit 1
fi
Expand Down

0 comments on commit 0a3c800

Please sign in to comment.