Skip to content
This repository was archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
only check for go mod files updates
Browse files Browse the repository at this point in the history
  • Loading branch information
lostbean committed Jul 10, 2024
1 parent 84dc708 commit d33fee6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,13 @@ jobs:
- name: Check Go tidiness
run: |
nix develop --command go-tidy-all && git diff-files --name-only && git diff-files --quiet
nix develop --command go-tidy-all
changed_files=$(git diff-files --name-only | grep -cv ".toml$")
if [[ $changed_gomods != 0 ]]; then
echo "Go modules are not so tidy (run `go-tidy-all` to fix it):"
git diff-files --name-only
exit 1
fi
build_publish_images:
name: Test, build and publish images
Expand Down

0 comments on commit d33fee6

Please sign in to comment.