Skip to content

Commit

Permalink
chore: add make scripts for submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe authored and moshloop committed Oct 23, 2024
1 parent 54ff757 commit e823b8f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Verify formatting
run: |
make lint
if [[ -n "$(git status --porcelain)" ]]; then
if [[ -n "$(git status --porcelain | grep -v 'argo-cd\|gitops-engine')" ]]; then
echo "The following files have formatting issues:"
git status --porcelain
echo "Please run 'make lint' locally and commit the changes"
Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ lint:
golines -m 120 -w events/

gofumpt -w .

.PHONY:
sync:
git submodule update --init --recursive

update-submodules:
git submodule update --remote --merge && git submodule sync

0 comments on commit e823b8f

Please sign in to comment.