Skip to content

Commit

Permalink
feat: add check vendor dir in presubmit
Browse files Browse the repository at this point in the history
exit on no vendor dir

Signed-off-by: Caleb Woodbine <[email protected]>
  • Loading branch information
BobyMCbobs committed May 31, 2023
1 parent 228780a commit 09b7137
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/reusable-presubmit-go-mod-vendor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
- id: changes
name: determine changes
run: |
if [ ! -d ./vendor ]; then
exit 0
fi
git add --all ./vendor
if ( git ls-files --other --directory --exclude-standard | grep 'vendor/' || git diff --name-only --diff-filter=ACMRT | grep 'vendor/' ); then
echo "changes=true" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 09b7137

Please sign in to comment.